From: Andy T. <an...@us...> - 2005-09-18 03:59:39
|
Update of /cvsroot/pythoncard/PythonCard/samples/stockprice In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9735/samples/stockprice Modified Files: stockprice.py Log Message: Making blanket except clauses more specific Index: stockprice.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/stockprice/stockprice.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** stockprice.py 5 May 2004 16:53:47 -0000 1.11 --- stockprice.py 18 Sep 2005 03:59:22 -0000 1.12 *************** *** 20,28 **** from SOAP import SOAPProxy FOUND_SOAP = 1 ! except: try: from SOAPpy import SOAPProxy FOUND_SOAP = 1 ! except: FOUND_SOAP = 0 --- 20,28 ---- from SOAP import SOAPProxy FOUND_SOAP = 1 ! except ImportError, msg: try: from SOAPpy import SOAPProxy FOUND_SOAP = 1 ! except ImportError, msg: FOUND_SOAP = 0 *************** *** 64,68 **** namespace='urn:xmethods-delayed-quotes') price = server.getQuote(symbol) ! except: pass return price --- 64,68 ---- namespace='urn:xmethods-delayed-quotes') price = server.getQuote(symbol) ! except Exception, msg: pass return price |