Skip to content

Commit

Permalink
Exit code 2 if TreeTimeError encountered
Browse files Browse the repository at this point in the history
Current behaviour is to exit code 0 ("success") if augur encounters
`TreeTimeError`. The initial implementation
(3256319) exited code 2 but this was
removed by 403da88

This bug was first observed (by me, at least) as part of
#1360
  • Loading branch information
jameshadfield committed Dec 20, 2023
1 parent e346693 commit 71445d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions augur/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def run(argv):
Please check your input data and try again. If you continue to have problems, please open a new issue including
the original command and the error above: <https://github.com/nextstrain/augur/issues/new/choose>
"""))
sys.exit(2)
except Exception:
traceback.print_exc(file=sys.stderr)
print_err("\n")
Expand Down

0 comments on commit 71445d9

Please sign in to comment.