[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 02e95e2c55165fe566414affd15033d3ad68ca7c
Author: Arturo Filastò <art@xxxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits