Forráskód Böngészése

wxGUI: fix vector map querying

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35469 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 éve
szülő
commit
9eaa2ffa44
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      gui/wxpython/gui_modules/dbm.py

+ 5 - 1
gui/wxpython/gui_modules/dbm.py

@@ -3356,7 +3356,10 @@ class VectorDBInfo(gselect.VectorDBInfo):
         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 @@ class VectorDBInfo(gselect.VectorDBInfo):
                 if readAttrb:
                     name, value = item.split(':', 1)
                     name = name.strip()
+                    value = value.strip()
                     # append value to the column
                     if len(value) < 1:
                         value = None