Fix None type exception when there's no localedir.
This commit is contained in:
parent
8a831ed466
commit
5f3f280ea0
@ -533,7 +533,7 @@ class GrampsLocale(object):
|
|||||||
# _init_secondary_locale if this comes up empty.
|
# _init_secondary_locale if this comes up empty.
|
||||||
if localedir and os.path.exists(os.path.abspath(localedir)):
|
if localedir and os.path.exists(os.path.abspath(localedir)):
|
||||||
self.localedir = localedir
|
self.localedir = localedir
|
||||||
elif (_first and hasattr(_first, 'localedir') and
|
elif (_first and hasattr(_first, 'localedir') and _first.localedir and
|
||||||
os.path.exists(os.path.abspath(_first.localedir))):
|
os.path.exists(os.path.abspath(_first.localedir))):
|
||||||
self.localedir = _first.localedir
|
self.localedir = _first.localedir
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user