diff options
-rw-r--r-- | sos/sosreport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py index 890e1385..0ec18c03 100644 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -1611,7 +1611,7 @@ class SoSReport(object): logging.shutdown() if self.tempfile_util: self.tempfile_util.clean() - if self.tmpdir: + if self.tmpdir and os.path.isdir(self.tmpdir): rmtree(self.tmpdir) return True |