* 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:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user