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:
|
if coin in coins_txapi:
|
||||||
txapi = coins_txapi[coin]
|
txapi = coins_txapi[coin]
|
||||||
else:
|
else:
|
||||||
sys.stderr.write('Coin "%s" is not recognized.\n' % coin)
|
click.echo('Coin "%s" is not recognized.' % coin, err=True)
|
||||||
sys.stderr.write('Supported coin types: %s\n' % ", ".join(coins_txapi.keys()))
|
click.echo('Supported coin types: %s' % ', '.join(coins_txapi.keys()), err=True)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
client.set_tx_api(txapi)
|
client.set_tx_api(txapi)
|
||||||
|
|
Loading…
Reference in New Issue