瀏覽代碼

wxGUI: fix grass.ScriptError
(merge https://trac.osgeo.org/grass/changeset/47010 from devbr6)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47012 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 14 年之前
父節點
當前提交
d0bc210d6f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gui_modules/location_wizard.py

+ 2 - 2
gui/wxpython/gui_modules/location_wizard.py

@@ -2037,8 +2037,8 @@ class LocationWizard(wx.Object):
                                       filename = self.wktpage.wktfile,
                                       desc = self.startpage.locTitle)
         
-        except grass.ScriptException, e:
-            return str(e)
+        except grass.ScriptError, e:
+            return e.value
         
         return None