[r21839]GrampsLocale: Fix NoneType error

svn: r21840
This commit is contained in:
John Ralls 2013-04-01 17:38:28 +00:00
parent efdaa1fd14
commit 3f2d9f6219

View File

@ -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