ledger: a bit friendlier msg when show_address fails for hw.1

This commit is contained in:
SomberNight 2018-04-28 16:34:38 +02:00
parent fad25af204
commit 33e3170591
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -516,6 +516,11 @@ class Ledger_KeyStore(Hardware_KeyStore):
pass
elif e.sw == 0x6982:
raise # pin lock. decorator will catch it
elif e.sw == 0x6b00: # hw.1 raises this
self.handler.show_error('{}\n{}\n{}'.format(
_('Error showing address') + ':',
e,
_('Your device might not have support for this functionality.')))
else:
traceback.print_exc(file=sys.stderr)
self.handler.show_error(e)