OSDN Git Service

Reduce traceback.
[fukui-no-namari/fukui-no-namari.git] / 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()