OSDN Git Service

Execute the treeview sort in try block.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Sat, 5 May 2007 15:43:54 +0000 (00:43 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Sat, 5 May 2007 15:43:54 +0000 (00:43 +0900)
src/FukuiNoNamari/board_window.py

index 81dce48..3678de1 100644 (file)
@@ -284,8 +284,12 @@ class WinWrap(winwrapbase.WinWrapBase, board_data.BoardData):
         try:
             states_dict = board_states.states_file_to_dict(self.bbs_type)
 
-            self.treeview.get_model().sort(
-                states_dict["sort_column"], True, states_dict["sort_reverse"])
+            try:
+                self.treeview.get_model().sort(
+                    states_dict["sort_column"], True,
+                    states_dict["sort_reverse"])
+            except:
+                pass
 
             # set column order before set column width
             treeviewcolumn = dict(