mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 19:08:12 +00:00
trezorctl: use click.echo instead of stderr.write
This commit is contained in:
parent
ab3d17b3df
commit
116c3c0575
@ -450,8 +450,8 @@ def sign_tx(connect, coin):
|
||||
if coin in coins_txapi:
|
||||
txapi = coins_txapi[coin]
|
||||
else:
|
||||
sys.stderr.write('Coin "%s" is not recognized.\n' % coin)
|
||||
sys.stderr.write('Supported coin types: %s\n' % ", ".join(coins_txapi.keys()))
|
||||
click.echo('Coin "%s" is not recognized.' % coin, err=True)
|
||||
click.echo('Supported coin types: %s' % ', '.join(coins_txapi.keys()), err=True)
|
||||
sys.exit(1)
|
||||
|
||||
client.set_tx_api(txapi)
|
||||
|
Loading…
Reference in New Issue
Block a user