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,9 +62,12 @@ def pubLookup(value: str) -> bool:
def countryLookup(country: str) -> dict:
if country != 'None' or country is not None or country != 'Unknown':
if country in country_info:
return country_info[country]
else:
return {}
else:
return {}
class GeoLookup: