From 7d868ec5ddcbf37018548464ec28163d6885edcb Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 22 Jan 2019 02:40:16 +0100 Subject: [PATCH] [mod] custom code when test failure is due to a known error --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index bb16d31..cc35674 100644 --- a/server.py +++ b/server.py @@ -183,7 +183,7 @@ async def check_http(request): "status": "error", "code": "error_http_check_connection_error", "content": "connection error, could not connect to the requested domain, it's very likely unreachable", - }, status=400) + }, status=418) except Exception: import traceback traceback.print_exc()