* type checking order must be switched

This commit is contained in:
Eray Özkural
2005-09-29 12:10:27 +00:00
parent 1f40387fba
commit c97c4a7352
+3 -3
View File
@@ -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)