[GRASS-SVN] r35469 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 17 15:13:38 EST 2009


Author: martinl
Date: 2009-01-17 15:13:38 -0500 (Sat, 17 Jan 2009)
New Revision: 35469

Modified:
   grass/trunk/gui/wxpython/gui_modules/dbm.py
Log:
wxGUI: fix vector map querying


Modified: grass/trunk/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/dbm.py	2009-01-17 19:15:47 UTC (rev 35468)
+++ grass/trunk/gui/wxpython/gui_modules/dbm.py	2009-01-17 20:13:38 UTC (rev 35469)
@@ -3356,7 +3356,10 @@
         if ret:
             readAttrb = False
             for item in ret.splitlines():
-                key, value = item.split(':', 1)
+                try:
+                    key, value = item.split(':', 1)
+                except ValueError:
+                    continue
                 
                 if key == 'Layer' and readAttrb:
                     readAttrb = False
@@ -3364,6 +3367,7 @@
                 if readAttrb:
                     name, value = item.split(':', 1)
                     name = name.strip()
+                    value = value.strip()
                     # append value to the column
                     if len(value) < 1:
                         value = None



More information about the grass-commit mailing list