Commit 319b1ba6 authored by Michal Čihař's avatar Michal Čihař

Catch only expected exceptions here

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent af742ac9
......@@ -316,7 +316,7 @@ class Language(models.Model, PercentMixin):
'''
try:
return unicode(data.PLURAL_NAMES[self.plural_type][idx])
except:
except (IndexError, KeyError):
if idx == 0:
return _('Singular')
elif idx == 0:
......
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