From 251e5b2ea560d32ac4d11ecfced744fd6ef9c1a8 Mon Sep 17 00:00:00 2001 From: Alessandro Amici Date: Tue, 12 Sep 2023 13:03:27 +0200 Subject: [PATCH] Fix ApiRequest.from_request --- cads_api_client/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cads_api_client/processing.py b/cads_api_client/processing.py index 921ef50..b514930 100644 --- a/cads_api_client/processing.py +++ b/cads_api_client/processing.py @@ -54,7 +54,7 @@ def from_request( retry_options: Dict[str, Any] = {"maximum_tries": 2, "retry_after": 10}, **kwargs: Any, ) -> T_ApiResponse: - response = multiurl.robust(session.request(*args, **kwargs), **retry_options) + response = multiurl.robust(session.request, **retry_options)(*args, **kwargs) if raise_for_status: cads_raise_for_status(response) self = cls(response, headers=kwargs.get("headers", {}), session=session)