Skip to content

Commit

Permalink
Add re-raise in SystemExit treatment for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
mexanick committed Jul 19, 2024
1 parent 7fbd0bc commit 570a4bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ctapipe/core/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ def run(self, argv=None, raises=False):
# Finish normally
Provenance().finish_activity(activity_name=self.name)
else:
if raises:
raise
# Finish with error
self.log.critical(
"Caught SystemExit with exit code %s", exit_status
Expand Down

0 comments on commit 570a4bb

Please sign in to comment.