Skip to content

Commit

Permalink
More generic error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
BTChip github committed Sep 24, 2019
1 parent 3b2e37f commit ade192b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ledgerblue/comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ def exchange(self, apdu, timeout=TIMEOUT):
if sw == 0x6484:
possibleCause = "Are you using the correct targetId?"
if sw == 0x6d00:
possibleCause = "Unexpected state of device: try closing the Bitcoin app?"
possibleCause = "Unexpected state of device: verify that the right application is opened?"
if sw == 0x6e00:
possibleCause = "Unexpected state of device: try opening U2F app?"
possibleCause = "Unexpected state of device: verify that the right application is opened?"
raise CommException("Invalid status %04x (%s)" % (sw, possibleCause), sw, response)
return response

Expand Down

0 comments on commit ade192b

Please sign in to comment.