Quellcode durchsuchen

wxGUI/modeler: fix handling error when unable to open input model file
(merge https://trac.osgeo.org/grass/changeset/67286 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67287 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa vor 9 Jahren
Ursprung
Commit
6f78171542
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      gui/wxpython/gmodeler/model.py

+ 1 - 1
gui/wxpython/gmodeler/model.py

@@ -296,7 +296,7 @@ class Model(object):
         try:
             gxmXml = ProcessModelFile(etree.parse(filename))
         except StandardError as e:
-            raise GException(e)
+            raise GException(unicode(e))
         
         if self.canvas:
             win = self.canvas.parent