mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-19 03:40:59 +00:00
fix stderr.write usage
This commit is contained in:
parent
564e6590c2
commit
609b8d4a4a
@ -591,7 +591,8 @@ def main():
|
||||
print(res)
|
||||
except CallException as e:
|
||||
status, message = e.args
|
||||
sys.stderr.write(b'failure: {message}\n'.format(message=message))
|
||||
sys.stderr.write('failure:')
|
||||
sys.stderr.write(str(message))
|
||||
exit(status)
|
||||
|
||||
|
||||
|
@ -90,7 +90,7 @@ def pprint(msg):
|
||||
return "<%s> (%d bytes):\n%s" % (msg_class, msg_size, msg)
|
||||
|
||||
def log(msg):
|
||||
sys.stderr.write(msg)
|
||||
sys.stderr.write(str(msg))
|
||||
sys.stderr.write('\n')
|
||||
sys.stderr.flush()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user