[tor-commits] [oonib/master] Fix other bugs in ooni-backend

art at torproject.org art at torproject.org
Fri Jan 31 10:32:35 UTC 2014


commit 02e95e2c55165fe566414affd15033d3ad68ca7c
Author: Arturo Filastò <art at fuffa.org>
Date:   Fri Dec 27 11:56:10 2013 +0100

    Fix other bugs in ooni-backend
---
 oonib/report/handlers.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oonib/report/handlers.py b/oonib/report/handlers.py
index 82f38b3..65f0e7c 100644
--- a/oonib/report/handlers.py
+++ b/oonib/report/handlers.py
@@ -213,7 +213,7 @@ class NewReportHandlerFile(OONIBHandler):
             raise e.MissingReportHeaderKey(key)
 
         except InvalidReportHeader, key:
-            raise e.InvalidReportHeaderKey(key)
+            raise e.InvalidReportHeader(key)
 
         report_header = yaml.dump(report_header)
         content = "---\n" + report_header + '...\n'
@@ -286,7 +286,7 @@ class NewReportHandlerFile(OONIBHandler):
             with open(report_filename, 'a+') as fd:
                 fdesc.setNonBlocking(fd.fileno())
                 fdesc.writeToFD(fd.fileno(), data)
-        except IOError as e:
+        except IOError as exc:
             e.OONIBError(404, "Report not found")
 
 class ReportNotFound(Exception):





More information about the tor-commits mailing list