Module: check_mk
Branch: master
Commit: e55377c1e7b2689edca8d509a905ff3cc9d28d91
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e55377c1e7b268…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Jul 16 14:00:02 2018 +0200
Fixed catching multiple errors
Change-Id: I94d13332fc02d3e9b027ffee7881d65a6ba85a48
---
cmk/gui/bi.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/gui/bi.py b/cmk/gui/bi.py
index 4ad3040..8684899 100644
--- a/cmk/gui/bi.py
+++ b/cmk/gui/bi.py
@@ -678,7 +678,7 @@ class BISitedataManager(object):
if time.time() - os.stat(filepath).st_mtime >
self._clear_orphaned_caches_after:
log("Cleanup orphaned file", filename)
os.unlink(filepath)
- except IndexError, IOError:
+ except (IndexError, IOError):
try:
os.unlink(filepath)
except: