fix: avoid call on internal method...

pull/9544/head
Raphaël Vinot 2024-02-02 11:56:18 +01:00
parent bba1fa2f39
commit 4fac6f656a
1 changed files with 2 additions and 2 deletions

View File

@ -116,9 +116,9 @@ def send(api: PyMISP, request_type: str, url: str, data=None, check_errors: bool
if data is None:
data = {}
response = api._prepare_request(request_type, url, data=data)
response = api._check_json_response(response)
r = response.json()
if check_errors:
check_response(response)
check_response(r)
return response