Module: check_mk
Branch: master
Commit: 853995ebea49b39531560caeefa06932ec61e706
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=853995ebea49b3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 17 16:12:05 2016 +0100
Now really fixed invalid MKUserError call
---
web/htdocs/weblib.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/weblib.py b/web/htdocs/weblib.py
index 7c39edb..5f53525 100644
--- a/web/htdocs/weblib.py
+++ b/web/htdocs/weblib.py
@@ -35,7 +35,7 @@ def ajax_tree_openclose():
name = html.get_unicode_input("name")
if not tree or not name:
- raise lib.MKUserError(_('tree or name parameter missing'))
+ raise lib.MKUserError(None, _('tree or name parameter missing'))
html.set_tree_state(tree, name, html.var("state"))
html.save_tree_states()
@@ -120,7 +120,7 @@ def ajax_set_rowselection():
action = html.var('action', 'set')
if action not in [ 'add', 'del', 'set', 'unset' ]:
- raise lib.MKUserError(_('Invalid action'))
+ raise lib.MKUserError(None, _('Invalid action'))
rows = html.var('rows', '').split(',')