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

art at torproject.org art at torproject.org
Tue Apr 30 13:01:45 UTC 2013


commit df06507a89a5878ede116228f3016f8ecdc58155
Author: Arturo Filastò <art at fuffa.org>
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 files changed, 1 insertions(+), 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)





More information about the tor-commits mailing list