From 99fc8fc4f1b398c2d1a6881e0f581d843499b90f Mon Sep 17 00:00:00 2001 From: astokes Date: Mon, 22 Jun 2009 18:48:08 +0000 Subject: tabulations still incorrect in some areas git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@587 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/sosreport | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/sosreport b/src/sosreport index 0ad17fc3..0d6870cf 100755 --- a/src/sosreport +++ b/src/sosreport @@ -88,22 +88,22 @@ def doExitCode(): doExit("Abnormal exit") def doExit(error=0): - global policy - policy.cleanDstroot() - sys.exit(error) + global policy + policy.cleanDstroot() + sys.exit(error) def doException(type, value, tb): - if hasattr(sys, 'ps1') or not sys.stderr.isatty(): - # we are in interactive mode or we don't have a tty-like - # device, so we call the default hook - sys.__excepthook__(type, value, tb) - else: - import traceback, pdb - # we are NOT in interactive mode, print the exception... - traceback.print_exception(type, value, tb) - print - # ...then start the debugger in post-mortem mode. - pdb.pm() + if hasattr(sys, 'ps1') or not sys.stderr.isatty(): + # we are in interactive mode or we don't have a tty-like + # device, so we call the default hook + sys.__excepthook__(type, value, tb) + else: + import traceback, pdb + # we are NOT in interactive mode, print the exception... + traceback.print_exception(type, value, tb) + print + # ...then start the debugger in post-mortem mode. + pdb.pm() # Handle any sort of exit signal cleanly # Currently, we intercept only sig 15 (TERM) -- cgit