From 037bef3a387bf22afcc258cee656b16b54519dca Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 5 Aug 2020 14:48:43 +0200 Subject: [PATCH] python: fix logging of protobuf repeated enums --- python/src/trezorlib/protobuf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/trezorlib/protobuf.py b/python/src/trezorlib/protobuf.py index 4fbcdfd32..dbcb6ed01 100644 --- a/python/src/trezorlib/protobuf.py +++ b/python/src/trezorlib/protobuf.py @@ -455,7 +455,7 @@ def format_message( if isinstance(value, list): # short list of simple values - if not value or isinstance(value[0], int): + if not value or ftype in (UVarintType, SVarintType, BoolType): return repr(value) # long list, one line per entry