summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2010-08-25 18:09:35 +0200
committerMartin Sivak <msivak@redhat.com>2010-08-25 18:09:35 +0200
commitce3ed375301f70a15f974780876f8e11a0909b8e (patch)
treee9e660b8c2d402cd867d7b2d0065f180ef9d42a8
parent05b78d2a5c4101e552954645df018b21aa32b8fb (diff)
downloadfirstaidkit-ce3ed375301f70a15f974780876f8e11a0909b8e.zip
firstaidkit-ce3ed375301f70a15f974780876f8e11a0909b8e.tar.gz
firstaidkit-ce3ed375301f70a15f974780876f8e11a0909b8e.tar.xz
Raise an exception if dialog sends other than expected response
-rw-r--r--frontend/frontend_gtk.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/frontend/frontend_gtk.py b/frontend/frontend_gtk.py
index cbb113c..7bdfc31 100644
--- a/frontend/frontend_gtk.py
+++ b/frontend/frontend_gtk.py
@@ -802,15 +802,13 @@ class MainWindow(object):
res = dlg.run()
- print "Dlg: ", res
-
if res==gtk.RESPONSE_ACCEPT:
- print dlg.items()
question.send_answer(message, dlg.items(), origin = self)
elif res==gtk.RESPONSE_CANCEL:
question.send_answer(message, [], origin = self)
else:
- message["reply"].end(level = reporting.FIRSTAIDKIT)
+ raise Exception("Unknown value %s")
+
finally:
# schedule dialog destroy
dlg.destroy()