GrampsLocale: Fix NoneType error
svn: r21839
This commit is contained in:
parent
4ceba9fd03
commit
a3cc615398
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user