Module: check_mk
Branch: master
Commit: 8043ef1502e5d929a51695f61b549e38273fe6fd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8043ef1502e5d9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 17 11:41:05 2016 +0100
edit_dictionaries: Fixed broken exception handling in case of non MKUserError()
exceptions
---
web/htdocs/forms.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/forms.py b/web/htdocs/forms.py
index 6927756..c14cb19 100644
--- a/web/htdocs/forms.py
+++ b/web/htdocs/forms.py
@@ -94,9 +94,12 @@ def edit_dictionaries(dictionaries, value, focus=None,
hover_help=True,
edited_value = entries.from_html_vars(keyname)
entries.validate_value(edited_value, keyname)
new_value[keyname].update(edited_value)
- except Exception, e:
+ except MKUserError, e:
messages.append("%s: %s" % (entries.title() or
_("Properties"), e))
html.add_user_error(e.varname, e)
+ except Exception, e:
+ messages.append("%s: %s" % (entries.title() or
_("Properties"), e))
+ html.add_user_error(None, e)
if validate and not html.has_user_errors():
try: