Module: check_mk
Branch: master
Commit: 880dda03365cb1fbd5f5c09be706debbb8fca8cf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=880dda03365cb1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 10 18:08:37 2016 +0100
Invalid exception handling when trying to edit a non existing custom user attribute
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ed7da65..b96c522 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -14259,7 +14259,7 @@ def mode_edit_custom_attr(phase, what):
if not new:
attr = [ a for a in attrs if a['name'] == name ]
if not attr:
- raise MKUserError(_('The attribute does not exist.'))
+ raise MKUserError(None, _('The attribute does not exist.'))
else:
attr = attr[0]
else: