mirror of
https://github.com/adulau/mmdb-server.git
synced 2024-11-07 11:36:24 +00:00
chg: [country_lookup] skip Unknown countries
This commit is contained in:
parent
d79b3dfbca
commit
d20b90393f
1 changed files with 4 additions and 1 deletions
|
@ -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 {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue