[oonib/master] try/except is not needed here

commit 4fb2c669147b602e9e126c5eea112b7f0aa1792f Author: Darius Bacon <darius@wry.me> 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:
participants (1)
-
art@torproject.org