From 9374c750f1733dc5a5265af119531d31de6816f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 14 Oct 2022 15:25:03 +0300 Subject: [PATCH] Remove exception catching to capture a trace --- plextraktsync/cli.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plextraktsync/cli.py b/plextraktsync/cli.py index e3426400d13..d9fba1d6e5f 100644 --- a/plextraktsync/cli.py +++ b/plextraktsync/cli.py @@ -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