[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/develop] And coverage skip pragma to GeoIP DB file check in bridgedb.geo.



commit 877ea4f353120526ff06dfb4977bf73dfde88318
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Thu Feb 19 00:46:16 2015 +0000

    And coverage skip pragma to GeoIP DB file check in bridgedb.geo.
---
 lib/bridgedb/geo.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/geo.py b/lib/bridgedb/geo.py
index 1e2e9e7..2a574ae 100644
--- a/lib/bridgedb/geo.py
+++ b/lib/bridgedb/geo.py
@@ -24,7 +24,7 @@ GEOIP_DBFILE = '/usr/share/GeoIP/GeoIP.dat'
 GEOIPv6_DBFILE = '/usr/share/GeoIP/GeoIPv6.dat'
 try:
     # Make sure we have the database before trying to import the module:
-    if not (isfile(GEOIP_DBFILE) and isfile(GEOIPv6_DBFILE)):
+    if not (isfile(GEOIP_DBFILE) and isfile(GEOIPv6_DBFILE)):  # pragma: no cover
         raise EnvironmentError("Could not find %r. On Debian-based systems, "\
                                "please install the geoip-database package."
                                % GEOIP_DBFILE)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits