GrampsLocale: Fix NoneType error

svn: r21839
This commit is contained in:
John Ralls 2013-04-01 17:34:26 +00:00
parent 4ceba9fd03
commit a3cc615398

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