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

[tor-commits] [ooni-probe/develop] Swallow the report creation failure so that it does not propagate



commit df06507a89a5878ede116228f3016f8ecdc58155
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Tue Apr 30 15:00:32 2013 +0200

    Swallow the report creation failure so that it does not propagate
    
    This fixes: https://trac.torproject.org/projects/tor/ticket/8803
---
 ooni/reporter.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ooni/reporter.py b/ooni/reporter.py
index 732d516..05d59d6 100644
--- a/ooni/reporter.py
+++ b/ooni/reporter.py
@@ -394,7 +394,6 @@ class Report(object):
         for reporter in self.reporters[:]:
 
             def report_created(result):
-                print "CREATED REPORT %s" % reporter
                 log.debug("Created report with %s" % reporter)
                 self._reporters_openned += 1
                 are_all_openned()
@@ -406,7 +405,7 @@ class Report(object):
                     all_openned.errback(defer.fail(e))
                 else:
                     are_all_openned()
-                return failure
+                return
 
             d = defer.maybeDeferred(reporter.createReport)
             d.addCallback(report_created)



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