chg: [country_lookup] skip Unknown countries

This commit is contained in:
Alexandre Dulaunoy 2022-10-15 10:13:25 +02:00
parent d79b3dfbca
commit d20b90393f
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -62,7 +62,10 @@ def pubLookup(value: str) -> bool:
def countryLookup(country: str) -> dict: def countryLookup(country: str) -> dict:
if country != 'None' or country is not None or country != 'Unknown': if country != 'None' or country is not None or country != 'Unknown':
return country_info[country] if country in country_info:
return country_info[country]
else:
return {}
else: else:
return {} return {}