diff --git a/workflows/plugins/hooks/inspirehep/inspire_http_hook.py b/workflows/plugins/hooks/inspirehep/inspire_http_hook.py index 094ff451..15b93fd9 100644 --- a/workflows/plugins/hooks/inspirehep/inspire_http_hook.py +++ b/workflows/plugins/hooks/inspirehep/inspire_http_hook.py @@ -1,4 +1,3 @@ -import json import logging import requests @@ -60,6 +59,6 @@ def call_api(self, method: str, endpoint: str, data: dict) -> Response: _retry_args=self.tenacity_retry_kwargs, endpoint=endpoint, headers=self.headers, - data=json.dumps(data), + data=data, method=method, )