From 946c5539af4595ce493da3c65303b82d1bd8b9d1 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 15 Mar 2014 14:24:17 -0700 Subject: [PATCH] 7026: Eliminate localedir error message --- gramps/gen/utils/grampslocale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index df624f7ab..74f2956a5 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -536,7 +536,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