Przeglądaj źródła

wxGUI: don't fail if vector map not found

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44731 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 lat temu
rodzic
commit
ab740be8f4
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      gui/wxpython/gui_modules/menuform.py

+ 5 - 2
gui/wxpython/gui_modules/menuform.py

@@ -297,8 +297,11 @@ class UpdateThread(Thread):
                 
                 
             elif name == 'ColumnSelect':
             elif name == 'ColumnSelect':
                 if map:
                 if map:
-                    if not cparams[map]['dbInfo']:
-                        cparams[map]['dbInfo'] = gselect.VectorDBInfo(map)
+                    try:
+                        if not cparams[map]['dbInfo']:
+                            cparams[map]['dbInfo'] = gselect.VectorDBInfo(map)
+                    except KeyError:
+                        pass
                     self.data[win.InsertColumns] = { 'vector' : map, 'layer' : layer,
                     self.data[win.InsertColumns] = { 'vector' : map, 'layer' : layer,
                                                      'dbInfo' : cparams[map]['dbInfo'] }
                                                      'dbInfo' : cparams[map]['dbInfo'] }
                 else: # table
                 else: # table