mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-18 10:32:02 +00:00
core: do not catch SystemExit in handle_session (#826)
This commit is contained in:
parent
94b85efba1
commit
d3b88a37be
@ -409,7 +409,7 @@ async def handle_session(iface: WireInterface, session_id: int) -> None:
|
|||||||
# Unload modules imported by the workflow. Should not raise.
|
# Unload modules imported by the workflow. Should not raise.
|
||||||
utils.unimport_end(modules)
|
utils.unimport_end(modules)
|
||||||
|
|
||||||
except BaseException as exc:
|
except Exception as exc:
|
||||||
# The session handling should never exit, just log and continue.
|
# The session handling should never exit, just log and continue.
|
||||||
if __debug__:
|
if __debug__:
|
||||||
log.exception(__name__, exc)
|
log.exception(__name__, exc)
|
||||||
|
Loading…
Reference in New Issue
Block a user