Skip to content

Commit

Permalink
Exclusive lock: update exception message
Browse files Browse the repository at this point in the history
Change the exception message from:
"smartcard.Exceptions.CardConnectionException: Failed to lock with
SCardBeginTransactionCard was reset."
to
"smartcard.Exceptions.CardConnectionException: Failed to lock with
SCardBeginTransaction: Card was reset."
  • Loading branch information
LudovicRousseau committed Mar 29, 2016
1 parent 2ddcbd4 commit d6afe52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smartcard/ExclusiveTransmitCardConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def lock(self):
hresult = SCardBeginTransaction(component.hcard)
if 0 != hresult:
raise CardConnectionException(
'Failed to lock with SCardBeginTransaction' +\
'Failed to lock with SCardBeginTransaction: ' +\
SCardGetErrorMessage(hresult))
else:
#print('locked')
Expand All @@ -71,7 +71,7 @@ def unlock(self):
SCARD_LEAVE_CARD)
if 0 != hresult:
raise CardConnectionException(
'Failed to unlock with SCardEndTransaction' +\
'Failed to unlock with SCardEndTransaction: ' +\
SCardGetErrorMessage(hresult))
else:
#print('unlocked')
Expand Down

0 comments on commit d6afe52

Please sign in to comment.