[GRASS-SVN] r44731 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 26 09:01:16 EST 2010
Author: martinl
Date: 2010-12-26 06:01:16 -0800 (Sun, 26 Dec 2010)
New Revision: 44731
Modified:
grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: don't fail if vector map not found
Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py 2010-12-26 13:52:15 UTC (rev 44730)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py 2010-12-26 14:01:16 UTC (rev 44731)
@@ -297,8 +297,11 @@
elif name == 'ColumnSelect':
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