Skip to content

Commit 9ff90a4

Browse files
committed
chore: Fix exception catching
1 parent 9120d35 commit 9ff90a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roborock/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def wrapper(*args, **kwargs):
9393
async def run():
9494
try:
9595
await func(*args, **kwargs)
96-
except Exception:
96+
except Exception as err:
9797
_LOGGER.exception("Uncaught exception in command")
98-
click.echo(f"Error: {sys.exc_info()[1]}", err=True)
98+
click.echo(f"Error: {err}", err=True)
9999
finally:
100100
if not context.is_session_mode():
101101
await context.cleanup()

0 commit comments

Comments
 (0)