[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r19299: {check} Catch IOError as well as OSError. (check/trunk/cgi-bin)
Author: ioerror
Date: 2009-04-11 18:57:58 -0400 (Sat, 11 Apr 2009)
New Revision: 19299
Modified:
check/trunk/cgi-bin/TorBulkExitList.py
Log:
Catch IOError as well as OSError.
Modified: check/trunk/cgi-bin/TorBulkExitList.py
===================================================================
--- check/trunk/cgi-bin/TorBulkExitList.py 2009-04-11 21:02:46 UTC (rev 19298)
+++ check/trunk/cgi-bin/TorBulkExitList.py 2009-04-11 22:57:58 UTC (rev 19299)
@@ -89,10 +89,10 @@
try:
parsedListDir = os.stat(parsedListDirPath)
- except OSError:
+ except (OSError, IOError):
os.mkdir(parsedListDirPath)
parsedListDir = os.stat(parsedListDirPath)
-
+
try:
# They may be a directory and so this would all fail.
# It may be better to check to see if this is a file.