Module: check_mk
Branch: master
Commit: cf63eab734311488343750c3975635ad1bcb26d9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cf63eab7343114…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Nov 28 11:48:07 2017 +0100
Fixed a Python classic. :-)
Change-Id: I155f6dcc9957399d61b1ba996bfe7f721b071258
---
web/plugins/wato/ac_tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/wato/ac_tests.py b/web/plugins/wato/ac_tests.py
index e8d00e3..a7a480f 100644
--- a/web/plugins/wato/ac_tests.py
+++ b/web/plugins/wato/ac_tests.py
@@ -391,7 +391,7 @@ class ACTestApacheNumberOfProcesses(ACTest, BPApacheTest):
def _get_average_process_size(self):
try:
ppid = int(open("%s/tmp/apache/run/apache.pid" %
cmk.paths.omd_root).read())
- except IOError, ValueError:
+ except (IOError, ValueError):
raise MKGeneralException(_("Failed to read the apache process
ID"))
sizes = []