[tor-commits] [ooni-probe/master] Maintain backward compatibility

art at torproject.org art at torproject.org
Mon May 30 16:28:32 UTC 2016


commit d9656bc7187a10774bac3851b33fe4118b10c7a9
Author: Arturo Filastò <arturo at filasto.net>
Date:   Sat Jan 30 12:36:49 2016 +0100

    Maintain backward compatibility
---
 ooni/reporter.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ooni/reporter.py b/ooni/reporter.py
index 63d6f15..66a3e86 100644
--- a/ooni/reporter.py
+++ b/ooni/reporter.py
@@ -199,6 +199,7 @@ class YAMLReporter(OReporter):
             raise Exception("Failed to serialise entry")
         content += safe_dump(report_entry)
         content += '...\n'
+        report_entry.update(self.testDetails)
         self._write(content)
 
     def createReport(self):
@@ -292,6 +293,7 @@ class OONIBReporter(OReporter):
                 report_entry = entry
             else:
                 raise Exception("Failed to serialise entry")
+            report_entry.update(self.testDetails)
             content += safe_dump(report_entry)
             content += '...\n'
             return content





More information about the tor-commits mailing list