浏览代码

quick bugfix introduced by #441

Martin Landa 5 年之前
父节点
当前提交
c729145468
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gmodeler/model.py

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

@@ -313,7 +313,7 @@ class Model(object):
         try:
         try:
             gxmXml = ProcessModelFile(etree.parse(filename))
             gxmXml = ProcessModelFile(etree.parse(filename))
         except Exception as e:
         except Exception as e:
-            raise GException(e)
+            raise GException('{}'.format(e))
 
 
         if self.canvas:
         if self.canvas:
             win = self.canvas.parent
             win = self.canvas.parent