commit 33e3170591ef28d25b01fde8ab49a7781637abd6 parent fad25af20405025b4cc30bfc4945e57016f1bc73 Author: SomberNight <somber.night@protonmail.com> Date: Sat, 28 Apr 2018 16:34:38 +0200 ledger: a bit friendlier msg when show_address fails for hw.1 Diffstat:
M | plugins/ledger/ledger.py | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/plugins/ledger/ledger.py b/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)