From 116c3c0575488f2a006ba9cd98fc503dd0bba8c0 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 2 Dec 2017 15:33:55 +0100 Subject: [PATCH] trezorctl: use click.echo instead of stderr.write --- trezorctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trezorctl b/trezorctl index d151f9783a..1d52b54397 100755 --- a/trezorctl +++ b/trezorctl @@ -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)