Always log exception using logging.exception

This commit is contained in:
Josh Wu
2025-08-18 15:38:43 +08:00
parent 3b8dd6f3cf
commit 4a88e9a0cf
16 changed files with 65 additions and 74 deletions

View File

@@ -292,9 +292,9 @@ async def open_usb_transport(spec: str) -> Transport:
if self.sink:
try:
self.sink.on_packet(packet)
except Exception as error:
except Exception:
logger.exception(
color(f'!!! Exception in sink.on_packet: {error}', 'red')
color('!!! Exception in sink.on_packet', 'red')
)
def close(self):