* looks special handling for XmlError is redundant. Any reason why that is here? Probably because the old handling was broken...

This commit is contained in:
Eray Özkural
2005-10-22 20:26:31 +00:00
parent b2c34aaf59
commit f67bd91aca
+2
View File
@@ -33,6 +33,8 @@ def handle_exception(exception, value, tb):
ui.error(_("Keyboard Interrupt: Exiting...")) ui.error(_("Keyboard Interrupt: Exiting..."))
sys.exit(1) sys.exit(1)
elif exception == XmlError: elif exception == XmlError:
#FIXME: is this necessary? Looks redundant.
ui.error("XML error encountered.")
ui.error(unicode(value)) ui.error(unicode(value))
sys.exit(1) sys.exit(1)
elif isinstance(value, pisi.Error): elif isinstance(value, pisi.Error):