From c615b4dc3259fa9df25bb119402db3f633c457fa Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 26 Mar 2019 08:52:29 -0700 Subject: [PATCH] [maclocale] Fix none type has no len(). Fixes #11075 --- 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 9b2e322f7..38ca6c304 100644 --- a/gramps/gen/utils/maclocale.py +++ b/gramps/gen/utils/maclocale.py @@ -266,7 +266,7 @@ def mac_setup_localization(glocale): LOG.debug("No supported languages found in $LANGUAGE") if not (language and language[0]): translations = _mac_language_list() - if len(translations) > 0: + if translations and len(translations) > 0: language = translations LOG.debug("Returning Translations %s", ':'.join(translations))