else:
exit, value = result
if exit == self.dialog.DIALOG_CANCEL or exit == self.dialog.DIALOG_ESC:
- raise UserCancl
+ raise UserCancel
elif exit != self.dialog.DIALOG_OK:
# XXX: We don't support stuff like DIALOG_EXTRA or DIALOG_HELP
raise DialogError(exit)
def __str__(self):
return """
-ERROR: Dialog returned a mysterious exit code %d. Please
-send mail to scripts@mit.edu with the contents of this error
-message and the preceding backtrace.
-""" % self.exitcode
+ERROR: Dialog returned a mysterious exit code %d.""" % self.exitcode
class UnsupportedTerminal(Error):
"""It doesn't look like we support this terminal. Internal error."""