1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-06 02:16:07 +00:00

fixup! feat(python): implement session based trezorlib

This commit is contained in:
M1nd3r 2025-03-28 16:39:12 +01:00
parent 6e1b9de2ee
commit 3eda6e6d4f

View File

@ -212,7 +212,7 @@ class SessionV1(Session):
)
assert isinstance(resp, messages.Features)
if new_session:
self.id = resp.session_id
self.id = resp.session_id or b""
elif self.id != resp.session_id:
raise exceptions.FailedSessionResumption(resp.session_id)
self.was_initialized_at_least_once = True