mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-07 16:49:04 +00:00
fix(python): do not log "resumed session" if there is no id
This commit is contained in:
parent
4d4d0e7216
commit
5feb76f603
@ -297,7 +297,7 @@ class TrezorClient:
|
|||||||
if not isinstance(resp, messages.Features):
|
if not isinstance(resp, messages.Features):
|
||||||
raise exceptions.TrezorException("Unexpected response to Initialize")
|
raise exceptions.TrezorException("Unexpected response to Initialize")
|
||||||
|
|
||||||
if resp.session_id == self.session_id:
|
if self.session_id is not None and resp.session_id == self.session_id:
|
||||||
LOG.info("Successfully resumed session")
|
LOG.info("Successfully resumed session")
|
||||||
elif session_id is not None:
|
elif session_id is not None:
|
||||||
LOG.info("Failed to resume session")
|
LOG.info("Failed to resume session")
|
||||||
|
Loading…
Reference in New Issue
Block a user