OSDN Git Service

Reduce traceback.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Thu, 28 Sep 2006 22:18:12 +0000 (07:18 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Thu, 28 Sep 2006 22:19:14 +0000 (07:19 +0900)
src/FukuiNoNamari/BbsType/bbs_type_other.py

index 34ecd64..5398d86 100644 (file)
@@ -30,8 +30,9 @@ def whitelist_load():
     try:
         for line in file(whitelist_path):
             _whitelist.append(line.rstrip())
-    except IOError:
-        traceback.print_exc()
+    except IOError, e:
+        if e.errno != 2:
+            traceback.print_exc()
 
 whitelist_load()