format code

This commit is contained in:
Kay0u 2021-01-25 18:50:05 +01:00
parent 4f5d957106
commit c1c34c11e2
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -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: