aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/utilities.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/utilities.py b/sos/utilities.py
index ee241589..9b062bb1 100644
--- a/sos/utilities.py
+++ b/sos/utilities.py
@@ -381,14 +381,14 @@ class DirTree(object):
try:
import pwd
return pwd.getpwuid(stats.st_uid)[0]
- except ImportError:
+ except:
return str(stats.st_uid)
def _get_group(self, stats):
try:
import grp
return grp.getgrgid(stats.st_gid)[0]
- except ImportError:
+ except:
return str(stats.st_uid)
def _format(self, path):