Module: check_mk
Branch: master
Commit: 9593a659f2e234e97d7839b3944a3e6b4d571184
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9593a659f2e234…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 7 08:44:54 2014 +0100
Fixed UnicodeDecodeError when using edit_dictionary in localized multisite
---
web/htdocs/forms.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/forms.py b/web/htdocs/forms.py
index 4905d67..7065ee9 100644
--- a/web/htdocs/forms.py
+++ b/web/htdocs/forms.py
@@ -59,7 +59,7 @@ def edit_dictionary(entries, value, focus=None, hover_help=True,
vs.validate_value(v, varprefix + name)
new_value[name] = v
except MKUserError, e:
- messages.append(u"%s: %s" % (vs.title(), e.message))
+ messages.append("%s: %s" % (vs.title(), e.message))
html.add_user_error(e.varname, e.message)
if validate and not html.has_user_errors():