From 3f2d9f62190a00d0bea847570b503b36a97b2602 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 1 Apr 2013 17:38:28 +0000 Subject: [PATCH] [r21839]GrampsLocale: Fix NoneType error svn: r21840 --- 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 d2ac075ae..58636fefe 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -108,7 +108,7 @@ def _check_mswin_locale(locale): def _check_mswin_locale_reverse(locale): for (loc, msloc) in mslocales.items(): - if locale == msloc[0]: + if msloc and locale == msloc[0]: return (loc, msloc[1]) return None