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 16, 2022
1 parent 332c910 commit 9374c75
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 9374c75

Please sign in to comment.