diff options
author | shnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-08-02 15:24:52 +0000 |
---|---|---|
committer | shnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-08-02 15:24:52 +0000 |
commit | d9c7152960de80234e74043a0bcdfcb7d4b3f745 (patch) | |
tree | 802182843e120152afa2020bea0ffcdd4861d0ea /src/sosreport | |
parent | b08894c32e557f418c0b59cd1318d2d90869632e (diff) | |
download | sos-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-x | src/sosreport | 18 |
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 |