* type checking order must be switched
This commit is contained in:
@@ -34,15 +34,15 @@ def handle_exception(exception, value, tb):
|
|||||||
elif exception == XmlError:
|
elif exception == XmlError:
|
||||||
ui.error(str(value))
|
ui.error(str(value))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
elif exception == pisi.Error:
|
||||||
|
ui.error(_("Fatal Error:"))
|
||||||
|
traceback = ctx.options and ctx.options.debug
|
||||||
elif exception == pisi.Exception:
|
elif exception == pisi.Exception:
|
||||||
ui.error(_("""
|
ui.error(_("""
|
||||||
Internal PISI Error:
|
Internal PISI Error:
|
||||||
Please file a bug report! (http://bugs.uludag.org.tr)
|
Please file a bug report! (http://bugs.uludag.org.tr)
|
||||||
"""))
|
"""))
|
||||||
traceback = True
|
traceback = True
|
||||||
elif exception == pisi.Error:
|
|
||||||
ui.error(_("Fatal Error:"))
|
|
||||||
traceback = ctx.options and ctx.options.debug
|
|
||||||
|
|
||||||
ui.error("%s" %exception)
|
ui.error("%s" %exception)
|
||||||
ui.error("%s\n" %value)
|
ui.error("%s\n" %value)
|
||||||
|
|||||||
Reference in New Issue
Block a user