Skip to content

Commit

Permalink
Merge pull request #388 from widdowquinn/patch-logging-error-in-subcm…
Browse files Browse the repository at this point in the history
…d_anim

Can't reference `run_id` if the run fails
  • Loading branch information
baileythegreen committed Apr 13, 2022
2 parents 71c5488 + 67e6238 commit 55a1492
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyani/scripts/subcommands/subcmd_anim.py
Expand Up @@ -195,9 +195,7 @@ def subcmd_anim(args: Namespace) -> None:
name=name,
)
except PyaniORMException:
logger.error(
"Could not add run %s to the database (exiting)", run_id, exc_info=True
)
logger.error("Could not add run to the database (exiting)", exc_info=True)
raise SystemExit(1)
logger.debug("...added run ID: %s to the database", run_id)

Expand Down

0 comments on commit 55a1492

Please sign in to comment.