[wmlunits] ignore translation errors from gettext

This commit is contained in:
Allefant 2017-01-23 19:48:01 -05:00
parent ad92b02f8c
commit 2f713046f0

View file

@ -97,6 +97,8 @@ class Translation:
# not sure why, but this happens within the
# gettext.translation call sometimes
self.catalog[textdomain] = self.dummy
except ValueError:
self.catalog[textdoman] = self.dummy
r = self.catalog[textdomain].ugettext(string)