aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index ea19ee57..78de61f6 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -574,7 +574,7 @@ class Plugin(object):
def getmtime(path):
try:
return os.path.getmtime(path)
- except (OSError, FileNotFoundError):
+ except OSError:
return 0
files.sort(key=getmtime, reverse=True)
@@ -585,7 +585,7 @@ class Plugin(object):
for _file in files:
try:
current_size += os.stat(_file)[stat.ST_SIZE]
- except (OSError, FileNotFoundError):
+ except OSError:
self._log_info("failed to stat '%s'" % _file)
if sizelimit and current_size > sizelimit:
limit_reached = True