[tor-commits] [ooni-probe/master] Fix bug that emerges when using CGeoIP.

art at torproject.org art at torproject.org
Mon Jan 13 13:46:16 UTC 2014


commit e82178bbf56c570878403023cdaa1d3a74f83067
Author: Arturo Filastò <art at fuffa.org>
Date:   Mon Jan 13 14:14:02 2014 +0100

    Fix bug that emerges when using CGeoIP.
---
 ooni/geoip.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ooni/geoip.py b/ooni/geoip.py
index 6c539e9..a97a6f5 100644
--- a/ooni/geoip.py
+++ b/ooni/geoip.py
@@ -18,7 +18,7 @@ except ImportError:
     try:
         import GeoIP as CGeoIP
         def GeoIP(database_path, *args, **kwargs):
-            return CGeoIP.open(database_path)
+            return CGeoIP.open(database_path, CGeoIP.GEOIP_STANDARD)
     except ImportError:
         log.err("Unable to import pygeoip. We will not be able to run geo IP related measurements")
 





More information about the tor-commits mailing list