Skip to content

Commit

Permalink
Remove exception catching to capture a trace
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Oct 14, 2022
1 parent 0d4f60b commit 54e5924
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions plextraktsync/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ def wrap(*args, **kwargs):
name = fn.__name__
module = importlib.import_module(f".commands.{name}", package=__package__)
cmd = getattr(module, name)

try:
cmd(*args, **kwargs)
except RuntimeError as e:
from click import ClickException

raise ClickException(f"Error running {name} command: {str(e)}")
cmd(*args, **kwargs)

return wrap

Expand Down

0 comments on commit 54e5924

Please sign in to comment.