7026: Eliminate localedir error message

This commit is contained in:
John Ralls 2014-03-15 14:24:17 -07:00
parent 1030239cce
commit 25b4c22a30

View File

@ -527,7 +527,7 @@ class GrampsLocale(object):
# _init_secondary_locale if this comes up empty.
if localedir and os.path.exists(os.path.abspath(localedir)):
self.localedir = localedir
elif _first and _first.localedir:
elif _first and hasattr(_first, 'localedir'):
self.localedir = _first.localedir
else:
self.localedir = None