Browse Source

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

3.2.x
SomberNight 7 years ago
parent
commit
33e3170591
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 5
      plugins/ledger/ledger.py

5
plugins/ledger/ledger.py

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

Loading…
Cancel
Save