1
0
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:
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): 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