We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9120d35 commit 9ff90a4Copy full SHA for 9ff90a4
1 file changed
roborock/cli.py
@@ -93,9 +93,9 @@ def wrapper(*args, **kwargs):
93
async def run():
94
try:
95
await func(*args, **kwargs)
96
- except Exception:
+ except Exception as err:
97
_LOGGER.exception("Uncaught exception in command")
98
- click.echo(f"Error: {sys.exc_info()[1]}", err=True)
+ click.echo(f"Error: {err}", err=True)
99
finally:
100
if not context.is_session_mode():
101
await context.cleanup()
0 commit comments