Fix ip in case None

This commit is contained in:
Achilles Rasquinha 2018-01-23 18:01:03 +05:30
parent 4ad57caaea
commit 1b5a1a22b6

View file

@ -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)