Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/anemoi/utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,13 @@ def cli_main(
else:
cmd.run(args)
except ValueError as e:

if test_arguments:
raise

if sys.excepthook is not sys.__excepthook__:
# re-raise exception if non-default excepthook is set (e.g. in pdb)
raise

traceback.print_exc()
LOG.error("\n💣 %s", str(e).lstrip())
LOG.error("💣 Exiting")
Expand Down
Loading