geoiplookup.py fails un-gracefully for ipv6

Issue #83 resolved
Riot created an issue
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)

  1. Log in to comment