mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
python: fix logging of protobuf repeated enums
This commit is contained in:
parent
c244503e1f
commit
037bef3a38
@ -455,7 +455,7 @@ def format_message(
|
|||||||
|
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
# short list of simple values
|
# 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)
|
return repr(value)
|
||||||
|
|
||||||
# long list, one line per entry
|
# long list, one line per entry
|
||||||
|
Loading…
Reference in New Issue
Block a user