[GRASS-SVN] r44733 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 26 13:46:33 EST 2010


Author: martinl
Date: 2010-12-26 10:46:33 -0800 (Sun, 26 Dec 2010)
New Revision: 44733

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: don't fail if vector map not found
(merge r44731 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2010-12-26 18:44:43 UTC (rev 44732)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2010-12-26 18:46:33 UTC (rev 44733)
@@ -252,8 +252,11 @@
                     layer = 1
                 
                 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,
                                                      'dbInfo' : cparams[map]['dbInfo'] }
                 else: # table



More information about the grass-commit mailing list