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

[tor-commits] [ooni-probe/master] Do not swallow errors in HTTP test template



commit 0bbd9a1e0c2f3f04120264fddabc3020692e4c01
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Fri Feb 8 20:22:57 2013 +0100

    Do not swallow errors in HTTP test template
---
 ooni/templates/httpt.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ooni/templates/httpt.py b/ooni/templates/httpt.py
index f7d5441..d9a1a33 100644
--- a/ooni/templates/httpt.py
+++ b/ooni/templates/httpt.py
@@ -305,7 +305,7 @@ class HTTPTest(NetTestCase):
             failure_string = handleAllFailures(failure)
             log.err("Error performing %s" % request)
             self.addToReport(request, failure_string=failure_string)
-            return
+            return failure
 
         d = agent.request(request['method'], request['url'], headers,
                 body_producer)



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