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

Damian Johnson atagar1 at gmail.com
Sat Jan 1 07:06:58 UTC 2011


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")



More information about the tor-commits mailing list