Don't substitude in errorInvalid. Closes GH-49.

Why was it doing substitutions in the first place?
This commit is contained in:
Valentin Lorentz 2015-12-28 20:01:17 +01:00
parent f4d36cd087
commit 7ce385b6f8

View File

@ -549,7 +549,9 @@ class RichReplyMethods(object):
v = _('That\'s not a valid %s.') % what v = _('That\'s not a valid %s.') % what
if 'Raise' not in kwargs: if 'Raise' not in kwargs:
kwargs['Raise'] = True kwargs['Raise'] = True
return self._error(self.__makeReply(v, s), **kwargs) if s:
v += ' ' + s
return self._error(v, **kwargs)
_repr = repr _repr = repr