issue #1700 replace raise Exception()

This commit is contained in:
Sebastian Hoogen
2014-08-24 14:33:10 +02:00
parent e5a54d0791
commit a81a307346
19 changed files with 38 additions and 37 deletions

View File

@@ -114,7 +114,7 @@ class TaskPanel:
for i in toplevel:
if i.metaObject().className() == "Gui::MainWindow":
return i
raise Exception("No main window found")
raise RuntimeError("No main window found")
def widget(self, class_id, name):
"""Return the selected widget.