Typo in gather_info/ips.py
Goaterino opened this issue · 1 comments
Goaterino commented
There is a typo in the geo_ip() static method from IP_Info class in ips.py :
@staticmethod
def geo_ip(u, timeout=15):
"""
this function is for getting: geoip informations
"""
ip=IP_Info.parse_IP(ip) # TYPO HERE, ip VARIABLE ISNT DEFINED BEFOREHAND, LEADING TO UNBOUNDLOCALERROR
try:
return requests.Session().get(
"https://api.db-ip.com/v2/free/" + u,
headers={"User-Agent": RD_USER_AGENT},
timeout=timeout,
).json()
except Exception as ex:
return ip
Hope it helps ! Have a nice day
AlaBouali commented
Thank you for letting me know ! I just fixed it and added amazing new features. Please update your version and check the documentation.