[oonib/master] Make probe CC conditional

commit dc9e53cd63866f894b73edaee630b64e739e5263 Author: Arturo Filastò <art@fuffa.org> Date: Mon Mar 10 02:11:38 2014 +0100 Make probe CC conditional --- oonib/report/handlers.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/oonib/report/handlers.py b/oonib/report/handlers.py index 1c29392..2ee73ac 100644 --- a/oonib/report/handlers.py +++ b/oonib/report/handlers.py @@ -245,9 +245,12 @@ class NewReportHandlerFile(OONIBHandler, UpdateReportMixin): software_name = str(report_data['software_name']) software_version = str(report_data['software_version']) - + probe_asn = str(report_data['probe_asn']) - probe_cc = str(report_data['probe_cc']) + try: + probe_cc = str(report_data['probe_cc']) + except: + probe_cc = 'ZZ' self.testName = str(report_data['test_name']) self.testVersion = str(report_data['test_version'])
participants (1)
-
art@torproject.org