mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-29 08:40:57 +00:00
debuglink: allow with-block without expected_responses
This commit is contained in:
parent
ffff11a462
commit
1d3fa77ab6
@ -214,6 +214,10 @@ class TrezorClientDebugLink(TrezorClient):
|
||||
# Another exception raised
|
||||
return False
|
||||
|
||||
if self.expected_responses is None:
|
||||
# no need to check anything else
|
||||
return False
|
||||
|
||||
# return isinstance(value, TypeError)
|
||||
# Evaluate missed responses in 'with' statement
|
||||
if self.current_response < len(self.expected_responses):
|
||||
|
Loading…
Reference in New Issue
Block a user