mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Don't substitude in errorInvalid. Closes GH-49.
Why was it doing substitutions in the first place?
This commit is contained in:
parent
f4d36cd087
commit
7ce385b6f8
@ -549,7 +549,9 @@ class RichReplyMethods(object):
|
||||
v = _('That\'s not a valid %s.') % what
|
||||
if 'Raise' not in kwargs:
|
||||
kwargs['Raise'] = True
|
||||
return self._error(self.__makeReply(v, s), **kwargs)
|
||||
if s:
|
||||
v += ' ' + s
|
||||
return self._error(v, **kwargs)
|
||||
|
||||
_repr = repr
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user