[tor-commits] [oonib/master] a more-direct test
art at torproject.org
art at torproject.org
Wed Apr 23 14:31:51 UTC 2014
commit 38048f623f84d6bc8edfbb7c68ec4669b2450a76
Author: Darius Bacon <darius at wry.me>
Date: Wed Apr 16 11:55:38 2014 -0700
a more-direct test
---
oonib/bouncer/handlers.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/oonib/bouncer/handlers.py b/oonib/bouncer/handlers.py
index 2c7a1fe..0980262 100644
--- a/oonib/bouncer/handlers.py
+++ b/oonib/bouncer/handlers.py
@@ -123,9 +123,7 @@ class BouncerQueryHandler(OONIBHandler):
except KeyError:
raise e.TestHelpersKeyMissing
- try:
- assert isinstance(requested_helpers, list)
- except AssertionError:
+ if not isinstance(requested_helpers, list):
raise e.InvalidRequest
response = self.bouncer.filterHelperAddresses(requested_helpers)
More information about the tor-commits
mailing list