From: <lu...@us...> - 2009-11-22 14:16:48
|
Revision: 331 http://pyscard.svn.sourceforge.net/pyscard/?rev=331&view=rev Author: ludov Date: 2009-11-22 14:16:37 +0000 (Sun, 22 Nov 2009) Log Message: ----------- catch an explicite IndexError exception instead of all Modified Paths: -------------- trunk/contrib/parseATR/parseATR.py Modified: trunk/contrib/parseATR/parseATR.py =================================================================== --- trunk/contrib/parseATR/parseATR.py 2009-11-22 14:15:15 UTC (rev 330) +++ trunk/contrib/parseATR/parseATR.py 2009-11-22 14:16:37 UTC (rev 331) @@ -479,7 +479,7 @@ if len == 1: try: sm = historical_bytes[0] - except: + except IndexError: text.append("Error in the ATR: expecting 1 byte and got 0\n") else: text.append(" Selection methods: %d\n" % sm) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |