From f2cb352ac39524e886373959cb6c19d028c1c185 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 21 Feb 2014 19:13:14 +0100 Subject: [PATCH] don't pprint FirmwareUpload message --- trezorlib/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trezorlib/client.py b/trezorlib/client.py index aa20348ed..ccade33e9 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -17,7 +17,10 @@ def get_buttonrequest_value(code): return [ k for k, v in types.ButtonRequestType.items() if v == code][0] def pprint(msg): - return "<%s> (%d bytes):\n%s" % (msg.__class__.__name__, msg.ByteSize(), msg) + if isinstance(msg, proto.FirmwareUpload): + return "<%s> (%d bytes):\n" % (msg.__class__.__name__, msg.ByteSize()) + else: + return "<%s> (%d bytes):\n%s" % (msg.__class__.__name__, msg.ByteSize(), msg) class CallException(Exception): def __init__(self, code, message):