1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-31 15:35:54 +00:00

python: fix logging of protobuf repeated enums

This commit is contained in:
matejcik 2020-08-05 14:48:43 +02:00
parent c244503e1f
commit 037bef3a38

View File

@ -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