From: <lu...@us...> - 2010-05-07 12:55:59
|
Revision: 401 http://pyscard.svn.sourceforge.net/pyscard/?rev=401&view=rev Author: ludov Date: 2010-05-07 12:55:52 +0000 (Fri, 07 May 2010) Log Message: ----------- getFeatureRequest(): do not fail if a unkown tag is reported by the PCSC driver Modified Paths: -------------- trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py Modified: trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py =================================================================== --- trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py 2010-04-29 14:59:27 UTC (rev 400) +++ trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py 2010-05-07 12:55:52 UTC (rev 401) @@ -82,7 +82,11 @@ while (len(response) > 0): tag = response[0] control = (((((response[2]<<8) + response[3])<<8) + response[4])<<8) + response[5] - features.append([Features[tag], control]) + print tag, control + try: + features.append([Features[tag], control]) + except KeyError: + pass del response[:6] return features This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |