Bug 7122 - Gramps does not start
Handle AppleCollationOrder returning an empty string
This commit is contained in:
parent
2f5bb96fd0
commit
e281f51ba6
@ -198,7 +198,7 @@ def mac_setup_localization(glocale):
|
|||||||
"AppleCollationOrder")
|
"AppleCollationOrder")
|
||||||
|
|
||||||
apple_collation = apple_collation.strip()
|
apple_collation = apple_collation.strip()
|
||||||
if apple_collation.startswith("root"):
|
if not apple_collation or apple_collation.startswith("root"):
|
||||||
return (None, None)
|
return (None, None)
|
||||||
div = apple_collation.split(b"@")
|
div = apple_collation.split(b"@")
|
||||||
collation = div[0]
|
collation = div[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user