mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
fix last commit (also skip print statement)
This commit is contained in:
parent
4e01971e4c
commit
f587135b8d
@ -405,8 +405,10 @@ class DebugLinkMixin(object):
|
||||
"Expected %s, got %s" % (pprint(expected), pprint(msg)))
|
||||
|
||||
for field, value in expected.__dict__.items():
|
||||
if getattr(expected, field) is None:
|
||||
continue
|
||||
print("EXPECTED", getattr(expected, field), getattr(msg, field), field, value)
|
||||
if getattr(expected, field) is not None and getattr(msg, field) != value:
|
||||
if getattr(msg, field) != value:
|
||||
raise CallException(proto.FailureType.UnexpectedMessage,
|
||||
"Expected %s, got %s" % (pprint(expected), pprint(msg)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user