From c1c34c11e21054988025d47d8bb168c286bb8c42 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Mon, 25 Jan 2021 18:50:05 +0100 Subject: [PATCH] format code --- moulinette/interfaces/api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/moulinette/interfaces/api.py b/moulinette/interfaces/api.py index 4c2c7e96..5d3d170c 100644 --- a/moulinette/interfaces/api.py +++ b/moulinette/interfaces/api.py @@ -558,7 +558,11 @@ class HTTPBadRequestResponse(HTTPResponse): if isinstance(error, MoulinetteError): content = error.content() if isinstance(content, dict): - super(HTTPBadRequestResponse, self).__init__(json_encode(content), 400, headers={'Content-type': 'application/json'}) + super(HTTPBadRequestResponse, self).__init__( + json_encode(content), + 400, + headers={"Content-type": "application/json"}, + ) else: super(HTTPBadRequestResponse, self).__init__(content, 400) else: