commit 304d8a5d5d86f51af40b8fd4af7e628afcba156c Author: Darius Bacon darius@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)
tor-commits@lists.torproject.org