- changed status to resolved
geoiplookup.py fails un-gracefully for ipv6
Issue #83
resolved
Traceback (most recent call last):
File "./geoiplookup.py", line 50, in <module>
print u"OK;{status};{query};{countryCode};{country};{regionName};{city};{zip};{lat};{lon};{timezone}".format(**data).encode("utf-8")
KeyError: u'countryCode'
It should either fail gracefully and not attempt to parse ipv6, or it should preferably detect ipv6 addresses and direct them to a suitable ipv6 geoip api.
Comments (1)
-
- Log in to comment
The API temporarily does not support IPv6, but the script fails gracefully since commit 1397dc2