[wmlunits] ignore translation errors from gettext

This commit is contained in:
Allefant 2017-01-23 19:48:01 -05:00
parent 78716d991f
commit 88a9929717

View file

@ -96,6 +96,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].gettext(string)