appliedsec / pygeoip

DEPRECATED: Pure Python API for Maxmind's binary GeoIP databases
https://github.com/appliedsec/pygeoip
GNU Lesser General Public License v3.0
482 stars 111 forks source link

Add support for countries South Sudan and Bonaire, Sint Eustatius and Saba #29

Closed tfederman closed 11 years ago

tfederman commented 11 years ago

Lines 345-347 of init.py (_get_record) throw an exception if these countries are missing from const.COUNTRY_CODES, const.COUNTRY_CODES3, const.COUNTRY_NAMES.

tiwilliam commented 11 years ago

Thanks Todd, the test IP resolved Sudan instead of South Sudan in my database, so I dropped it since I couldn't find another one to test with.