[tor-commits] [ooni-probe/master] Fix bug that lead to reports being marked as collected when they actually were not.

art at torproject.org art at torproject.org
Sat Aug 9 23:04:25 UTC 2014


commit b8569e461a3d8beca873783a83446718b7e1f64d
Author: Arturo Filastò <art at fuffa.org>
Date:   Thu Aug 7 18:50:11 2014 +0200

    Fix bug that lead to reports being marked as collected when they actually were not.
---
 ooni/reporter.py |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/ooni/reporter.py b/ooni/reporter.py
index 5497ed5..88a9dec 100644
--- a/ooni/reporter.py
+++ b/ooni/reporter.py
@@ -567,6 +567,8 @@ class Report(object):
                                                    self.collector_address)
 
         def created(report_id):
+            if not self.oonib_reporter:
+                return
             return self.report_log.created(self.report_filename,
                                            self.collector_address,
                                            report_id)





More information about the tor-commits mailing list