From 05131c328d734bc1a45f8964d1815204f0101c06 Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 14 Jan 2020 11:56:58 +0100 Subject: [PATCH] python: trezorctl should not print empty line if result is None --- python/src/trezorlib/cli/trezorctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/trezorlib/cli/trezorctl.py b/python/src/trezorlib/cli/trezorctl.py index 596db11d81..95878fd9d8 100755 --- a/python/src/trezorlib/cli/trezorctl.py +++ b/python/src/trezorlib/cli/trezorctl.py @@ -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)