mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-07 00:28:45 +00:00
fixup! feat(python): implement session based trezorlib
This commit is contained in:
parent
6e1b9de2ee
commit
3eda6e6d4f
@ -212,7 +212,7 @@ class SessionV1(Session):
|
|||||||
)
|
)
|
||||||
assert isinstance(resp, messages.Features)
|
assert isinstance(resp, messages.Features)
|
||||||
if new_session:
|
if new_session:
|
||||||
self.id = resp.session_id
|
self.id = resp.session_id or b""
|
||||||
elif self.id != resp.session_id:
|
elif self.id != resp.session_id:
|
||||||
raise exceptions.FailedSessionResumption(resp.session_id)
|
raise exceptions.FailedSessionResumption(resp.session_id)
|
||||||
self.was_initialized_at_least_once = True
|
self.was_initialized_at_least_once = True
|
||||||
|
Loading…
Reference in New Issue
Block a user