From bed67030efe8691e092db93a7ab9e42b70bd52aa Mon Sep 17 00:00:00 2001 From: Bryce Willey Date: Fri, 20 Mar 2026 11:32:51 -0400 Subject: [PATCH] Fix black and mypy issues --- .../alembic/versions/5b46c3a6f9b7_add_github_user_and_repo.py | 1 - docassemble/GithubFeedbackForm/feedback_on_server.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) 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