1
0
This commit is contained in:
SomberNight
2018-02-04 21:59:58 +01:00
parent 42ed4bc3d6
commit ac2d4eb0ef
3 changed files with 22 additions and 4 deletions

View File

@@ -172,6 +172,10 @@ class Ledger_Client():
raise Exception("Dongle is temporarily locked - please unplug it and replug it again")
if ((e.sw & 0xFFF0) == 0x63c0):
raise Exception("Invalid PIN - please unplug the dongle and plug it again before retrying")
if e.sw == 0x6f00 and e.message == 'Invalid channel':
# based on docs 0x6f00 might be a more general error, hence we also compare message to be sure
raise Exception("Invalid channel.\n"
"Please make sure that 'Browser support' is disabled on your device.")
raise e
def checkDevice(self):