[or-cvs] r15744: Fix a small bug that causes the entire bulk exit list to fai (check/trunk/cgi-bin)

ioerror at seul.org ioerror at seul.org
Mon Jul 7 23:51:18 UTC 2008


Author: ioerror
Date: 2008-07-07 19:51:18 -0400 (Mon, 07 Jul 2008)
New Revision: 15744

Modified:
   check/trunk/cgi-bin/TorBulkExitList.py
Log:
Fix a small bug that causes the entire bulk exit list to fail after /tmp is cleaned up.


Modified: check/trunk/cgi-bin/TorBulkExitList.py
===================================================================
--- check/trunk/cgi-bin/TorBulkExitList.py	2008-07-07 19:42:36 UTC (rev 15743)
+++ check/trunk/cgi-bin/TorBulkExitList.py	2008-07-07 23:51:18 UTC (rev 15744)
@@ -83,8 +83,16 @@
     """
 
     maxListAge = 1600
+    parsedListDirPath = "/tmp/TorBulkCheck/"
     parsedExitList = "/tmp/TorBulkCheck/parsed-exit-list"
 
+    try: 
+        parsedListDir = os.stat(parsedListDirPath)
+
+    except OSError:
+        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.



More information about the tor-commits mailing list