Module: check_mk
Branch: master
Commit: 555ec7d74286e7730639b8a5866496aae62284e5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=555ec7d74286e7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Sep 29 21:30:17 2013 +0200
FIX: avoid Python exception for invalid parameters even in debug mode
---
ChangeLog | 1 +
web/htdocs/wato.py | 2 --
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 12b71fa..6ca185d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -410,6 +410,7 @@
* FIX: Fixed first toggle of flags in global settings when default is set to True
* FIX: fix exception and loss of hosts in a folder when deleting all site
connections
of a distributed WATO setup
+ * FIX: avoid Python exception for invalid parameters even in debug mode
Event Console:
* FIX: apply rewriting of application/hostname also when cancelling events
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 65b5d76..e7fad09 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2329,8 +2329,6 @@ def show_service_table(host, firsttime):
rulespec["valuespec"].validate_value(params, "")
paramtext = rulespec["valuespec"].value_to_text(params)
except Exception, e:
- if config.debug:
- raise
paramtext = _("Invalid check parameter: %s!") % e
paramtext += _(" The parameter is: %r") % (params,)