commit 02e95e2c55165fe566414affd15033d3ad68ca7c Author: Arturo Filastò art@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):
tor-commits@lists.torproject.org