aboutsummaryrefslogtreecommitdiffstats
path: root/src/sosreport
diff options
context:
space:
mode:
authorshnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-08-02 15:24:52 +0000
committershnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-08-02 15:24:52 +0000
commitd9c7152960de80234e74043a0bcdfcb7d4b3f745 (patch)
tree802182843e120152afa2020bea0ffcdd4861d0ea /src/sosreport
parentb08894c32e557f418c0b59cd1318d2d90869632e (diff)
downloadsos-d9c7152960de80234e74043a0bcdfcb7d4b3f745.tar.gz
catch exceptions even for copyStuff()
added missing files for sysreport.legacy git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@311 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/sosreport')
-rwxr-xr-xsrc/sosreport18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/sosreport b/src/sosreport
index 876c1df4..302373ae 100755
--- a/src/sosreport
+++ b/src/sosreport
@@ -606,13 +606,17 @@ Press ENTER to continue, or CTRL-C to quit.
plugrunning = Semaphore(2)
for plugname, plug in loadedplugins:
soslog.log(logging.VERBOSE, "executing plugin %s" % plugname)
- if not __cmdLineOpts__.nomultithread:
- plug.copyStuff(threaded = True, semaphore = plugrunning)
- else:
- plug.copyStuff()
- if __cmdLineOpts__.progressbar:
- pbar.incAmount(plug.eta_weight)
- pbar.update()
+ try:
+ if not __cmdLineOpts__.nomultithread:
+ plug.copyStuff(threaded = True, semaphore = plugrunning)
+ else:
+ plug.copyStuff()
+ if __cmdLineOpts__.progressbar:
+ pbar.incAmount(plug.eta_weight)
+ pbar.update()
+ except:
+ if __raisePlugins__:
+ raise
del plugrunning
# Wait for all the collection threads to exit