From fe65f8bbf2c3e741d085208eb3302fbf1084d83b Mon Sep 17 00:00:00 2001 From: ctmbl Date: Tue, 13 Jun 2023 19:04:43 +0200 Subject: [PATCH] Fix Apiv5Client.call token refreshing logic --- helloasso_api/apiv5client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helloasso_api/apiv5client.py b/helloasso_api/apiv5client.py index 46c3083..83b9ebe 100755 --- a/helloasso_api/apiv5client.py +++ b/helloasso_api/apiv5client.py @@ -211,12 +211,12 @@ def call( ) -> Response: """Manage all api calls. It also handle re-authentication if necessary.""" self.log.debug(f"Call : {method} : {sub_path}") - url, headers, data, json, params = self.prepare_request( + url, all_headers, data, json, params = self.prepare_request( sub_path, headers, data, json, params, include_auth ) try: - result = self.execute_request(url, method, headers, data, json, params) + result = self.execute_request(url, method, all_headers, data, json, params) return result except ApiV5Unauthorized: self.log.warning("401 Unauthorized response to API request.")