diff --git a/docassemble/GithubFeedbackForm/alembic/versions/5b46c3a6f9b7_add_github_user_and_repo.py b/docassemble/GithubFeedbackForm/alembic/versions/5b46c3a6f9b7_add_github_user_and_repo.py index d9ee5dc..c7a2704 100644 --- a/docassemble/GithubFeedbackForm/alembic/versions/5b46c3a6f9b7_add_github_user_and_repo.py +++ b/docassemble/GithubFeedbackForm/alembic/versions/5b46c3a6f9b7_add_github_user_and_repo.py @@ -9,7 +9,6 @@ from alembic import op import sqlalchemy as sa - # revision identifiers, used by Alembic. revision = "5b46c3a6f9b7" down_revision = "8821926028d6" diff --git a/docassemble/GithubFeedbackForm/feedback_on_server.py b/docassemble/GithubFeedbackForm/feedback_on_server.py index 8a99792..fd554f1 100644 --- a/docassemble/GithubFeedbackForm/feedback_on_server.py +++ b/docassemble/GithubFeedbackForm/feedback_on_server.py @@ -164,7 +164,9 @@ def save_feedback_info( ) with engine.begin() as conn: result = conn.execute(stmt) - id_for_feedback = result.inserted_primary_key[0] + id_for_feedback = ( + result.inserted_primary_key[0] if result.inserted_primary_key else None + ) return id_for_feedback else: # can happen if the forwarding interview didn't pass session info