[r21839]GrampsLocale: Fix NoneType error
svn: r21840
This commit is contained in:
parent
efdaa1fd14
commit
3f2d9f6219
@ -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