From 63ab0711e2e727663ddcad2e5f772d05b2aa1433 Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 30 Jun 2022 15:53:41 +0200 Subject: [PATCH] fix(python): fix crashing `trezorctl --version` fixes #1702 --- python/.changelog.d/1702.fixed | 1 + python/src/trezorlib/cli/trezorctl.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 python/.changelog.d/1702.fixed diff --git a/python/.changelog.d/1702.fixed b/python/.changelog.d/1702.fixed new file mode 100644 index 000000000..aa5cbfe5d --- /dev/null +++ b/python/.changelog.d/1702.fixed @@ -0,0 +1 @@ +Fix `trezorctl --version` crash. diff --git a/python/src/trezorlib/cli/trezorctl.py b/python/src/trezorlib/cli/trezorctl.py index 1e331194a..5dc673433 100755 --- a/python/src/trezorlib/cli/trezorctl.py +++ b/python/src/trezorlib/cli/trezorctl.py @@ -170,7 +170,7 @@ def configure_logging(verbose: int) -> None: help="Resume given session ID.", default=os.environ.get("TREZOR_SESSION_ID"), ) -@click.version_option() +@click.version_option(package_name="trezor") @click.pass_context def cli_main( ctx: click.Context,