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