Commit f5b79cb0 authored by Sebastien Robin's avatar Sebastien Robin

Localizer: give more details when a message can not be translated

parent 8ab6c633
......@@ -276,7 +276,7 @@ class MessageCatalog(LanguageManager, ObjectManager, SimpleItem):
as a translation for unknown messages.
"""
if not isinstance(message, basestring):
raise TypeError, 'only strings can be translated.'
raise TypeError('only strings can be translated, not: %r' % (message,))
if default is None:
default = message
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment