From 2f647c52a543212a58ae51f9c3d3b5874326eb56 Mon Sep 17 00:00:00 2001 From: Fridolin Glatter Date: Fri, 29 Nov 2024 14:13:18 +0100 Subject: [PATCH] Fix passing kwargs to _uncached_request --- ixmp4/conf/manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ixmp4/conf/manager.py b/ixmp4/conf/manager.py index e7d125b6..13a7da50 100644 --- a/ixmp4/conf/manager.py +++ b/ixmp4/conf/manager.py @@ -85,6 +85,8 @@ def _uncached_request( self, method: str, path: str, + params: dict[str, int | None] | None = None, + json: dict[str, Any] | list[Any] | tuple[Any] | None = None, jti: str | None = None, ) -> dict[str, Any]: del jti @@ -95,7 +97,7 @@ def _uncached_request( # NOTE: since this cache is not shared amongst processes, it's efficacy # declines with the scale of the whole infrastructure unless counteracted # with increased cache size / memory usage - res = self.client.request(method, path) + res = self.client.request(method, path, params=params, json=json) if res.status_code != 200: raise ManagerApiError(f"[{str(res.status_code)}] {res.text}") # TODO Can we really assume this type?