From 57a6fa48a7c5c581db50f9590b9ad6c4be43ac2d Mon Sep 17 00:00:00 2001 From: sgdt6900 Date: Thu, 11 Jan 2018 11:57:43 +0200 Subject: adding some comments to enahnce removing comments and add todo point Signed-off-by: sgdt6900 Change-Id: I38f21bd7557fb758b50d561a06efe8ea09ca07fc --- moon_interface/moon_interface/http_server.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'moon_interface/moon_interface/http_server.py') diff --git a/moon_interface/moon_interface/http_server.py b/moon_interface/moon_interface/http_server.py index 82ee5d91..a2e25377 100644 --- a/moon_interface/moon_interface/http_server.py +++ b/moon_interface/moon_interface/http_server.py @@ -114,12 +114,6 @@ class HTTPServer(Server): def get_400_json(e): return jsonify({"result": False, "code": 400, "description": str(e)}), 400 - ''' - [Note] i have tried to simulate authz post request (authz_Requests/run) to return 500 response code - and an AuthzException thrown from their [Line 63] and catched here , then the server here return response - with 403 code [Forbidden] , is it correct if so why sometime at authz [from Line 137] return a response - with error code , i think we can do it in the same way as the one mentioned? - ''' self.app.register_error_handler(400, lambda e: get_400_json) self.app.register_error_handler(403, exceptions.AuthException) -- cgit 1.2.3-korg