From e281f51ba64ab2e6f5f9da8bd38894d8546f5825 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 14 Feb 2014 17:21:12 -0800 Subject: [PATCH] Bug 7122 - Gramps does not start Handle AppleCollationOrder returning an empty string --- gramps/gen/utils/maclocale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/utils/maclocale.py b/gramps/gen/utils/maclocale.py index 67848442c..a9ad9c950 100644 --- a/gramps/gen/utils/maclocale.py +++ b/gramps/gen/utils/maclocale.py @@ -198,7 +198,7 @@ def mac_setup_localization(glocale): "AppleCollationOrder") apple_collation = apple_collation.strip() - if apple_collation.startswith("root"): + if not apple_collation or apple_collation.startswith("root"): return (None, None) div = apple_collation.split(b"@") collation = div[0]