Skip to content

Commit

Permalink
chg: [country_lookup] skip Unknown countries
Browse files Browse the repository at this point in the history
  • Loading branch information
adulau committed Oct 15, 2022
1 parent d79b3df commit d20b903
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def pubLookup(value: str) -> bool:

def countryLookup(country: str) -> dict:
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:
return {}

Expand Down

0 comments on commit d20b903

Please sign in to comment.