mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 23:40:58 +00:00
python: trezorctl should not print empty line if result is None
This commit is contained in:
parent
c151fdeefd
commit
05131c328d
@ -182,7 +182,7 @@ def print_result(res, path, verbose, is_json):
|
|||||||
click.echo("%s: %s" % (k, v))
|
click.echo("%s: %s" % (k, v))
|
||||||
elif isinstance(res, protobuf.MessageType):
|
elif isinstance(res, protobuf.MessageType):
|
||||||
click.echo(protobuf.format_message(res))
|
click.echo(protobuf.format_message(res))
|
||||||
else:
|
elif res is not None:
|
||||||
click.echo(res)
|
click.echo(res)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user