From: <lu...@us...> - 2009-07-29 21:22:54
|
Revision: 312 http://pyscard.svn.sourceforge.net/pyscard/?rev=312&view=rev Author: ludov Date: 2009-07-29 21:22:44 +0000 (Wed, 29 Jul 2009) Log Message: ----------- catch exception Modified Paths: -------------- trunk/contrib/parseATR/stress_test.py Modified: trunk/contrib/parseATR/stress_test.py =================================================================== --- trunk/contrib/parseATR/stress_test.py 2009-07-29 21:21:49 UTC (rev 311) +++ trunk/contrib/parseATR/stress_test.py 2009-07-29 21:22:44 UTC (rev 312) @@ -36,5 +36,16 @@ continue if "?" in atr: continue - print atr - parseATR.atr_display_txt(parseATR.parseATR(atr)) + + # remove traling newline + atr = atr.rstrip() + print "ATR:", atr + + try: + txt = parseATR.atr_display_txt(parseATR.parseATR(atr)) + except parseATR.ParseAtrException, e: + print e + else: + print txt + + print This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |