Commit a95b41f8 by William Tisäter

Return None from _get_record() when missing data #36

parent d8be2c2f
......@@ -324,7 +324,7 @@ class GeoIP(GeoIPBase):
"""
seek_country = self._seek_country(ipnum)
if seek_country == self._databaseSegments:
return {}
return None
read_length = (2 * self._recordLength - 1) * self._databaseSegments
self._lock.acquire()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment