aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/sosreport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index f47918fe..b37989b0 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -1131,7 +1131,7 @@ class SoSReport(object):
try:
self.xml_report.add_file(oneFile["srcpath"],
os.stat(oneFile["srcpath"]))
- except IOError:
+ except (OSError, IOError):
pass
try:
self.xml_report.serialize_to_file(os.path.join(self.rptdir,