You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system used: Windows 11 23H2 (Build 22631.3374)
pyscard version: 2.0.8
Python version: 3.8.11 % 3.12.2 (conda)
Please describe your issue in as much detail as possible:
Describe what you expected should happen.
-> CardRequestTimeoutException should be created and thrown
Describe what did happen.
-> CardRequestTimeoutException throws error on its init
Steps for reproducing this issue:
3.8.11 and 3.12.2 are conda manage environments.
Both are naked -> Only Base python, pip and pyscard
I appended a simple snipped for reproduction.
fromsmartcard.CardTypeimportAnyCardTypefromsmartcard.CardRequestimportCardRequestfromsmartcard.ExceptionsimportCardRequestTimeoutExceptioncardtype=AnyCardType()
cardrequest=CardRequest(timeout=1, cardType=cardtype)
while (1):
try:
cardservice=cardrequest.waitforcard()
exceptCardRequestTimeoutException:
continue
Traceback:
Traceback (most recent call last):
File "blabla\test.py", line 13, in <module>
cardservice = cardrequest.waitforcard()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "blabla\Lib\site-packages\smartcard\CardRequest.py", line 68, in waitforcard
return self.pcsccardrequest.waitforcard()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "blabla\Lib\site-packages\smartcard\pcsc\PCSCCardRequest.py", line 216, in waitforcard
raise CardRequestTimeoutException(hresult=hresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: CardRequestTimeoutException.__init__() got an unexpected keyword argument 'hresult'
The text was updated successfully, but these errors were encountered:
BoLer1
changed the title
Unexpected kexword argument 'hresult' for CardRequestTimeoutException
Unexpected keyword argument 'hresult' for CardRequestTimeoutException
Apr 5, 2024
Your system information
Please describe your issue in as much detail as possible:
Describe what you expected should happen.
-> CardRequestTimeoutException should be created and thrown
Describe what did happen.
-> CardRequestTimeoutException throws error on its init
Steps for reproducing this issue:
3.8.11 and 3.12.2 are conda manage environments.
Both are naked -> Only Base python, pip and pyscard
I appended a simple snipped for reproduction.
Traceback:
The text was updated successfully, but these errors were encountered: