From: Andy T. <an...@us...> - 2005-09-18 03:59:39
|
Update of /cvsroot/pythoncard/PythonCard/samples/testSplitter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9735/samples/testSplitter Modified Files: doodle.py testSplitter.py Log Message: Making blanket except clauses more specific Index: doodle.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/testSplitter/doodle.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** doodle.py 28 Sep 2004 21:23:55 -0000 1.1 --- doodle.py 18 Sep 2005 03:59:22 -0000 1.2 *************** *** 79,83 **** bmp.SaveFile(path, fileType) return 1 ! except: return 0 else: --- 79,83 ---- bmp.SaveFile(path, fileType) return 1 ! except IOError, msg: return 0 else: Index: testSplitter.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/testSplitter/testSplitter.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** testSplitter.py 28 Sep 2004 21:23:55 -0000 1.1 --- testSplitter.py 18 Sep 2005 03:59:22 -0000 1.2 *************** *** 141,145 **** bmp.SaveFile(path, fileType) return 1 ! except: return 0 else: --- 141,145 ---- bmp.SaveFile(path, fileType) return 1 ! except Exception, msg: # Should check for a particular exception return 0 else: |