OSDN Git Service

Fix a bug. miss exceptions.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Mon, 25 Sep 2006 16:03:50 +0000 (01:03 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Mon, 25 Sep 2006 16:03:50 +0000 (01:03 +0900)
src/FukuiNoNamari/board_states.py

index 0bd40a8..4428f7c 100644 (file)
@@ -99,15 +99,15 @@ def load_gconf_generator():
 def states_file_to_dict(bbs_type):
     states_dict = default_states_dict.copy()
 
-    iterable = itertools.chain(
-        load_gconf_generator(), states_file_to_dict_generator(bbs_type))
+    try:
+        for key, value in load_gconf_generator(): states_dict[key] = value
+    except:
+        traceback.print_exc()
 
     try:
-        for key, value in iterable:
+        for key, value in states_file_to_dict_generator(bbs_type):
             states_dict[key] = value
     except IOError:
         pass
-    except:
-        traceback.print_exc()
 
     return states_dict