1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

python: trezorctl should not print empty line if result is None

This commit is contained in:
matejcik 2020-01-14 11:56:58 +01:00
parent c151fdeefd
commit 05131c328d

View File

@ -182,7 +182,7 @@ def print_result(res, path, verbose, is_json):
click.echo("%s: %s" % (k, v))
elif isinstance(res, protobuf.MessageType):
click.echo(protobuf.format_message(res))
else:
elif res is not None:
click.echo(res)