Module: check_mk
Branch: master
Commit: 80399b3a0a636cfc26dbc597a0d96b99e24af7e1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=80399b3a0a636c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jun 29 15:03:10 2016 +0200
pylint-Fehler in kürzlichem Commit behoben
---
web/htdocs/valuespec.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index a6929ef..ffb2045 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -1495,7 +1495,8 @@ class CascadingDropdown(ValueSpec):
type(value) == self._encoding_type and value[0] == val):
if vs:
if type(value) != self._encoding_type or len(value) != 2:
- raise MKUserError(varprefix + "_sel", _("Value
must a %s with two elements."), self._encoding_type.__name__)
+ raise MKUserError(varprefix + "_sel",
+ _("Value must be a %s with two elements.") %
self._encoding_type.__name__)
vs.validate_datatype(value[1], varprefix + "_%d" % nr)
return
raise MKUserError(varprefix, _("Value %r is not allowed here.") %
value)