From 84cabddcc9f64be702d3e2c44c8a8f924a0b323e Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 20 Feb 2014 13:53:33 -0800 Subject: [PATCH] Better fix for bug 7122. --- gramps/gen/utils/maclocale.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/utils/maclocale.py b/gramps/gen/utils/maclocale.py index 3fc5829d0..5cfdeb9b8 100644 --- a/gramps/gen/utils/maclocale.py +++ b/gramps/gen/utils/maclocale.py @@ -199,6 +199,8 @@ def mac_setup_localization(glocale): apple_collation = _mac_get_gramps_defaults("Global", "AppleCollationOrder") + if not apple_collation: + return (None, None) apple_collation = apple_collation.strip() if not apple_collation or apple_collation.startswith("root"): return (None, None)