[tor-commits] [oonib/master] Fix typo in parsing of nettests.

art at torproject.org art at torproject.org
Wed Apr 23 14:31:51 UTC 2014


commit 2fd5df09bd739c773eb58d2919c07e3dd24807d5
Author: Arturo Filastò <art at fuffa.org>
Date:   Fri Mar 28 18:36:47 2014 +0100

    Fix typo in parsing of nettests.
    
    Thanks to @Darius for spotting it.
---
 oonib/policy/handlers.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oonib/policy/handlers.py b/oonib/policy/handlers.py
index 913aeb1..83a7f24 100644
--- a/oonib/policy/handlers.py
+++ b/oonib/policy/handlers.py
@@ -34,7 +34,7 @@ class Policy(object):
     def validateNettest(self, nettest_name):
         # XXX add support for version checking too.
         valid = False
-        if self.nettest:
+        if not self.nettest:
             valid = True
         for nt in self.nettest:
             if nettest_name == nt['name']:





More information about the tor-commits mailing list