[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r24014: {arm} Handling OSErrors that arise in opening the debug file. (arm/trunk/src)



Author: atagar
Date: 2011-01-01 07:06:58 +0000 (Sat, 01 Jan 2011)
New Revision: 24014

Modified:
   arm/trunk/src/starter.py
Log:
Handling OSErrors that arise in opening the debug file.



Modified: arm/trunk/src/starter.py
===================================================================
--- arm/trunk/src/starter.py	2011-01-01 06:59:34 UTC (rev 24013)
+++ arm/trunk/src/starter.py	2011-01-01 07:06:58 UTC (rev 24014)
@@ -214,7 +214,7 @@
       
       util.log.DUMP_FILE.write("%s\n%s\n" % (initMsg, "-" * len(initMsg)))
       util.log.DUMP_FILE.flush()
-    except IOError, exc:
+    except (OSError, IOError), exc:
       print "Unable to write to debug log file: %s" % util.sysTools.getFileErrorMsg(exc)
   
   config = util.conf.getConfig("arm")