aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/postgresql.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/sos/plugins/postgresql.py b/sos/plugins/postgresql.py
index 62fdcbec..6a999f45 100644
--- a/sos/plugins/postgresql.py
+++ b/sos/plugins/postgresql.py
@@ -57,9 +57,5 @@ class postgresql(Plugin, RedHatPlugin):
def postproc(self):
import shutil
- if self.tmp_dir == None:
- return
- try:
+ if self.tmp_dir:
shutil.rmtree(self.tmp_dir)
- except:
- pass