From d1f36f42c0d74f8f80830bfee10b959ee4834b20 Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 17 Sep 2019 16:05:30 +0200 Subject: [PATCH] trezorctl: properly check firmware_present (fixes #224) --- 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 f17e1ae60f..b0f5634f5f 100755 --- a/python/src/trezorlib/cli/trezorctl.py +++ b/python/src/trezorlib/cli/trezorctl.py @@ -807,7 +807,7 @@ def firmware_update( click.echo("Dry run. Not uploading firmware to device.") else: try: - if f.major_version == 1 and f.firmware_present: + if f.major_version == 1 and f.firmware_present is not False: # Trezor One does not send ButtonRequest click.echo("Please confirm action on your Trezor device") return firmware.update(client, data)