mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Localization fails for MaxArgumentError
When MaxArgumentError si raised, the string localized by ngettext is not printed properly. https://fedorahosted.org/freeipa/ticket/1148
This commit is contained in:
parent
d7c60205a6
commit
31bf405fe3
@ -263,7 +263,10 @@ class PublicError(StandardError):
|
||||
self.format = format
|
||||
self.forwarded = False
|
||||
self.msg = self.format % kw
|
||||
self.strerror = ugettext(self.format) % kw
|
||||
if isinstance(self.format, basestring):
|
||||
self.strerror = ugettext(self.format) % kw
|
||||
else:
|
||||
self.strerror = self.format % kw
|
||||
else:
|
||||
if type(message) is not unicode:
|
||||
raise TypeError(
|
||||
|
Loading…
Reference in New Issue
Block a user