From 90802de193d8525944e924672569e0c8579ca278 Mon Sep 17 00:00:00 2001 From: Patrick Ogenstad Date: Fri, 15 Aug 2025 14:48:45 +0200 Subject: [PATCH] Send in the correct and expected types --- infrahub_sdk/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrahub_sdk/utils.py b/infrahub_sdk/utils.py index 9c7274f1..d90c1f96 100644 --- a/infrahub_sdk/utils.py +++ b/infrahub_sdk/utils.py @@ -95,7 +95,7 @@ def decode_json(response: httpx.Response) -> dict: try: return response.json() except json.decoder.JSONDecodeError as exc: - raise JsonDecodeError(content=response.text, url=response.url) from exc + raise JsonDecodeError(content=response.text, url=str(response.url)) from exc def generate_uuid() -> str: @@ -232,7 +232,7 @@ def get_branch(branch: str | None = None, directory: str | Path = ".") -> str: if branch: return branch - repo = GitRepoManager(directory) + repo = GitRepoManager(root_directory=str(directory)) return str(repo.active_branch)