[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [oonib/master] try/except is not needed here
commit c543fee5b416af54604c3d356f6b5bb058860405
Author: Darius Bacon <darius@xxxxxx>
Date: Wed Apr 16 12:22:42 2014 -0700
try/except is not needed here
---
oonib/report/handlers.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/oonib/report/handlers.py b/oonib/report/handlers.py
index f1fec4a..34aa8d9 100644
--- a/oonib/report/handlers.py
+++ b/oonib/report/handlers.py
@@ -305,10 +305,7 @@ class NewReportHandlerFile(OONIBHandler, UpdateReportMixin):
'report_id': report_id
}
- try:
- requested_helper = report_data['test_helper']
- except KeyError:
- requested_helper = None
+ requested_helper = report_data.get('test_helper')
if requested_helper:
try:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits