aboutsummaryrefslogtreecommitdiffstats
path: root/src/sosreport
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2009-06-22 18:48:08 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2009-06-22 18:48:08 +0000
commit99fc8fc4f1b398c2d1a6881e0f581d843499b90f (patch)
tree3732dd71cd89943f868ed4ce38dbb9fc048ecd1b /src/sosreport
parent4ad6eadf6657fac8fdfce48be3834ddd43202767 (diff)
downloadsos-99fc8fc4f1b398c2d1a6881e0f581d843499b90f.tar.gz
tabulations still incorrect in some areas
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@587 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/sosreport')
-rwxr-xr-xsrc/sosreport28
1 files 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)