Skip to content

Commit

Permalink
Merge pull request #1552 from dandi/enh-exc
Browse files Browse the repository at this point in the history
enh: log exception info (at debug) when we catch an exception in map_to_click handler
  • Loading branch information
yarikoptic authored Dec 13, 2024
2 parents 3ea8c87 + d05c7f1 commit dc938f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/cli/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def wrapper(obj, *args, **kwargs):
# raise click.UsageError(str(e))
except Exception as e:
e_str = str(e)
lgr.debug("Caught exception %s", e_str)
lgr.debug("Caught exception %s", e_str, exc_info=True)
if not map_to_click_exceptions._do_map:
raise
raise click.ClickException(e_str)
Expand Down

0 comments on commit dc938f6

Please sign in to comment.