geoiplookup.py fails for some data

Issue #80 resolved
Riot created an issue

executing ./geoiplookup.py 10.152.163.66 with that specific IP causes:

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'

Comments (2)

  1. Log in to comment