aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/sosreport.py19
1 files changed, 8 insertions, 11 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index 8bfc95fd..02d9b21c 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -1560,17 +1560,14 @@ class SoSReport(object):
self.global_plugin_options[key] = value
def _cleanup(self):
- try:
- # archive and tempfile cleanup may fail due to a fatal
- # OSError exception (ENOSPC, EROFS etc.).
- if self.archive:
- self.archive.cleanup()
- if self.tempfile_util:
- self.tempfile_util.clean()
- if self.tmpdir:
- rmtree(self.tmpdir)
- except:
- raise
+ # archive and tempfile cleanup may fail due to a fatal
+ # OSError exception (ENOSPC, EROFS etc.).
+ if self.archive:
+ self.archive.cleanup()
+ if self.tempfile_util:
+ self.tempfile_util.clean()
+ if self.tmpdir:
+ rmtree(self.tmpdir)
def execute(self):
try: