From c97c4a7352b5c6c509cfa4a811d2dcac3efc62dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 29 Sep 2005 12:10:27 +0000 Subject: [PATCH] * type checking order must be switched --- pisi-cli | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pisi-cli b/pisi-cli index 1f1b0c8a..5de09e9e 100755 --- a/pisi-cli +++ b/pisi-cli @@ -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)