소스 검색

wxGUI/modeler: fix handling error when unable to open input model file

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67286 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 년 전
부모
커밋
9963581adb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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