1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

core: do not catch SystemExit in handle_session (#826)

This commit is contained in:
matejcik 2020-02-08 11:23:08 +01:00
parent 94b85efba1
commit d3b88a37be

View File

@ -409,7 +409,7 @@ async def handle_session(iface: WireInterface, session_id: int) -> None:
# Unload modules imported by the workflow. Should not raise.
utils.unimport_end(modules)
except BaseException as exc:
except Exception as exc:
# The session handling should never exit, just log and continue.
if __debug__:
log.exception(__name__, exc)