1
0
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:
matejcik 2018-10-03 14:00:24 +02:00
parent ffff11a462
commit 1d3fa77ab6

View File

@ -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):