From 4e01971e4cfdc9f8b4c0128416e3640a2b1892ff Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Thu, 4 Jan 2018 16:34:33 +0100 Subject: [PATCH] client: expected field check fix --- trezorlib/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trezorlib/client.py b/trezorlib/client.py index 792c3a57df..38c5555d47 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -406,7 +406,7 @@ class DebugLinkMixin(object): for field, value in expected.__dict__.items(): print("EXPECTED", getattr(expected, field), getattr(msg, field), field, value) - if getattr(expected, field) != value: + if getattr(expected, field) is not None and getattr(msg, field) != value: raise CallException(proto.FailureType.UnexpectedMessage, "Expected %s, got %s" % (pprint(expected), pprint(msg)))