1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 20:38:10 +00:00

fix(python): fix crashing trezorctl --version

fixes #1702
This commit is contained in:
matejcik 2022-06-30 15:53:41 +02:00
parent 3141f808dd
commit 63ab0711e2
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix `trezorctl --version` crash.

View File

@ -170,7 +170,7 @@ def configure_logging(verbose: int) -> None:
help="Resume given session ID.", help="Resume given session ID.",
default=os.environ.get("TREZOR_SESSION_ID"), default=os.environ.get("TREZOR_SESSION_ID"),
) )
@click.version_option() @click.version_option(package_name="trezor")
@click.pass_context @click.pass_context
def cli_main( def cli_main(
ctx: click.Context, ctx: click.Context,