Skip to content

Commit

Permalink
feat(objects): adding timeout config
Browse files Browse the repository at this point in the history
  • Loading branch information
Lowaiz committed Dec 14, 2023
1 parent d6d92ca commit a300d3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vaultwarden/clients/bitwarden.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def __init__(
client_id: str,
client_secret: str,
device_id: UUID | str,
timeout: int = 30,
):
# if one of the parameters is None, raise an exception
if not all(
Expand All @@ -33,6 +34,7 @@ def __init__(
self._http_client = Client(
base_url=f"{self.url}/",
event_hooks={"response": [log_raise_for_status]},
timeout=timeout,
)
self._connect_token: ConnectToken | None = None
self._sync: SyncData | None = None
Expand Down

0 comments on commit a300d3e

Please sign in to comment.