commit c79f159e82aae1630765a1e198c6cf27971a018b
Author: Arturo Filastò <a...@fuffa.org>
Date:   Thu Jan 30 17:14:41 2014 +0100

    Check if config.probe_ip is set.
---
 ooni/nettest.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ooni/nettest.py b/ooni/nettest.py
index 526de5d..ca831eb 100644
--- a/ooni/nettest.py
+++ b/ooni/nettest.py
@@ -239,7 +239,7 @@ class NetTestLoader(object):
         from ooni import __version__ as software_version
 
         client_geodata = {}
-        if config.probe_ip.address and (config.privacy.includeip or \
+        if config.probe_ip and config.probe_ip.address and 
(config.privacy.includeip or \
                 config.privacy.includeasn or \
                 config.privacy.includecountry or \
                 config.privacy.includecity):



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

Reply via email to