Module: check_mk
Branch: master
Commit: b36922641eff74b175fe7a2d28cf160969d4ce53
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b36922641eff74…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Mar 14 15:55:52 2018 +0100
Fixed invalid error handling in agent_fritzbox
Change-Id: I378b82d81bf930f785773243a9339ebb91dc7c8c
---
agents/special/agent_fritzbox | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/special/agent_fritzbox b/agents/special/agent_fritzbox
index f34d5f6..fc26ac0 100755
--- a/agents/special/agent_fritzbox
+++ b/agents/special/agent_fritzbox
@@ -169,7 +169,7 @@ def get_upnp_info(control, namespace, action):
# parse the response body
match = re.search('<u:%sResponse[^>]+>(.*)</u:%sResponse>' %
(action, action), contents, re.M | re.S)
if not match:
- raise APIError('Response is not parsable')
+ raise Exception('Response is not parsable')
response = match.group(1)
matches = re.findall('<([^>]+)>([^<]+)<[^>]+>',
response, re.M | re.S)