From 58976dc35c33c9fc9c9abfbc9d8872c32ee01bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 28 Jul 2022 15:12:40 +0200 Subject: [PATCH] fix: make flake8 happy --- pymisp/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/api.py b/pymisp/api.py index f2a16a6..68e933f 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -3525,7 +3525,7 @@ class PyMISP: def _check_response(self, response: requests.Response, lenient_response_type: bool = False, expect_json: bool = False) -> Union[Dict, str]: """Check if the response from the server is not an unexpected error""" if response.status_code >= 500: - headers_without_auth = {i:response.request.headers[i] for i in response.request.headers if i!='Authorization'} + headers_without_auth = {i: response.request.headers[i] for i in response.request.headers if i != 'Authorization'} logger.critical(everything_broken.format(headers_without_auth, response.request.body, response.text)) raise MISPServerError(f'Error code 500:\n{response.text}')