Skip to content

Commit

Permalink
Fix passing kwargs to _uncached_request
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Nov 29, 2024
1 parent 27e3a9f commit 2f647c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ixmp4/conf/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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?
Expand Down

0 comments on commit 2f647c5

Please sign in to comment.