Skip to content

Commit

Permalink
fix: make sure timeout is never None
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloGiacco committed Feb 4, 2025
1 parent bd29816 commit 3c626c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist/
__pycache__/
poetry.toml
.ruff_cache/
env/
2 changes: 1 addition & 1 deletion src/elevenlabs/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def __init__(
follow_redirects: typing.Optional[bool] = True,
httpx_client: typing.Optional[httpx.AsyncClient] = None,
):
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout
self._client_wrapper = AsyncClientWrapper(
base_url=_get_base_url(base_url=base_url, environment=environment),
api_key=api_key,
Expand Down

0 comments on commit 3c626c8

Please sign in to comment.