[r21612]GrampsLocale: Protect another setlocale instance
svn: r21617
This commit is contained in:
parent
2ebec70e21
commit
3490ebc684
@ -163,7 +163,10 @@ class GrampsLocale(object):
|
||||
domain=None, language=None):
|
||||
|
||||
#First, globally set the locale to what's in the environment:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except locale.Error:
|
||||
pass
|
||||
|
||||
if localedir and os.path.exists(localedir):
|
||||
self.localedir = localedir
|
||||
|
Loading…
Reference in New Issue
Block a user