This commit is contained in:
Eray Özkural
2005-10-14 16:36:16 +00:00
parent 7d40634bcb
commit 647c76ff31
+2 -2
View File
@@ -38,7 +38,7 @@ def handle_exception(exception, value, tb):
sys.exit(1) sys.exit(1)
elif isinstance(value, pisi.Error): elif isinstance(value, pisi.Error):
ui.error(_("Fatal Error. Program Terminated.")) ui.error(_("Fatal Error. Program Terminated."))
show_traceback = ctx.config and ctx.config.options.debug show_traceback = ctx.get_option('debug')
elif isinstance(value, pisi.Exception): elif isinstance(value, pisi.Exception):
show_traceback = True show_traceback = True
ui.error(_(""" ui.error(_("""
@@ -47,7 +47,7 @@ Please file a bug report. (http://bugs.uludag.org.tr)"""))
else: else:
# For any other exception (possibly Python exceptions) show # For any other exception (possibly Python exceptions) show
# the traceback! # the traceback!
show_traceback = ctx.config and ctx.config.options.debug show_traceback = ctx.get_option('debug')
ui.error(_("System Error. Program Terminated.")) ui.error(_("System Error. Program Terminated."))
ui.error("%s: %s\n" % (exception, value)) ui.error("%s: %s\n" % (exception, value))