commit cb25ead1cd666ff674c2389880a2e5087757e296 Author: Arturo Filastò art@fuffa.org Date: Wed Jan 29 20:52:29 2014 +0100
Properly close the report in the close report handler. --- oonib/report/handlers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/oonib/report/handlers.py b/oonib/report/handlers.py index 389c412..39fa1de 100644 --- a/oonib/report/handlers.py +++ b/oonib/report/handlers.py @@ -351,10 +351,10 @@ class CloseReportHandlerFile(OONIBHandler): pass
def post(self, report_id): - try: - close_report(report_id) - except ReportNotFound: - e.ReportNotFound + if report_id in config.reports: + config.reports[report_id].close() + else: + raise e.ReportNotFound
class PCAPReportHandler(OONIBHandler): def get(self):
tor-commits@lists.torproject.org