appliedsec/pygeoip

UnicodeWarning in pygeoip/__init__.py:128

idyedov opened this issue · 1 comments

Getting a UnicodeWarning in pygeoip/init.py:128 when using MEMORY_CACHE and city database. Can't retrieve any city/region data as a result of this.

It works fine for STANDARD, and also worked fine in pygeoip 0.2.2 with MEMORY_CACHE

here's the error:
/Library/Python/2.7/site-packages/pygeoip/init.py:128: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal

Pull request merged, fixed.