Fix ip in case None
This commit is contained in:
parent
4ad57caaea
commit
1b5a1a22b6
1 changed files with 2 additions and 0 deletions
|
|
@ -427,6 +427,8 @@ def get_geo_from_ip(ip_addr):
|
|||
return
|
||||
except ValueError:
|
||||
return
|
||||
except TypeError:
|
||||
return
|
||||
|
||||
def get_geo_ip_country(ip_addr):
|
||||
match = get_geo_from_ip(ip_addr)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue