Skip to content

Commit 90802de

Browse files
committed
Send in the correct and expected types
1 parent 3269a41 commit 90802de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infrahub_sdk/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def decode_json(response: httpx.Response) -> dict:
9595
try:
9696
return response.json()
9797
except json.decoder.JSONDecodeError as exc:
98-
raise JsonDecodeError(content=response.text, url=response.url) from exc
98+
raise JsonDecodeError(content=response.text, url=str(response.url)) from exc
9999

100100

101101
def generate_uuid() -> str:
@@ -232,7 +232,7 @@ def get_branch(branch: str | None = None, directory: str | Path = ".") -> str:
232232
if branch:
233233
return branch
234234

235-
repo = GitRepoManager(directory)
235+
repo = GitRepoManager(root_directory=str(directory))
236236
return str(repo.active_branch)
237237

238238

0 commit comments

Comments
 (0)