1
0
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:
Pavol Rusnak 2017-12-02 15:33:55 +01:00
parent ab3d17b3df
commit 116c3c0575
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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)