[tor-commits] [oonib/master] Make probe CC conditional
art at torproject.org
art at torproject.org
Wed Mar 26 17:54:37 UTC 2014
commit dc9e53cd63866f894b73edaee630b64e739e5263
Author: Arturo Filastò <art at 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'])
More information about the tor-commits
mailing list