Project/CreateDialogCodeDialog.py

branch
5_1_x
changeset 1207
f6d920580635
parent 1138
3104df9e1fd0
child 1277
52dd5a2f1ed1
--- a/Project/CreateDialogCodeDialog.py	Wed Jul 27 19:07:01 2011 +0200
+++ b/Project/CreateDialogCodeDialog.py	Fri Jul 29 18:24:15 2011 +0200
@@ -117,7 +117,7 @@
         try:
             dlg = uic.loadUi(self.formFile)
             return dlg.objectName()
-        except AttributeError as err:
+        except (AttributeError, ImportError) as err:
             E5MessageBox.critical(self,
                 self.trUtf8("uic error"),
                 self.trUtf8("""<p>There was an error loading the form <b>{0}</b>.</p>"""
@@ -133,7 +133,7 @@
         try:
             dlg = uic.loadUi(self.formFile)
             return dlg.metaObject().className()
-        except AttributeError as err:
+        except (AttributeError, ImportError) as err:
             E5MessageBox.critical(self,
                 self.trUtf8("uic error"),
                 self.trUtf8("""<p>There was an error loading the form <b>{0}</b>.</p>"""

eric ide

mercurial