diff --git a/clients.py b/clients.py index ee0ba2da..f080cd4b 100644 --- a/clients.py +++ b/clients.py @@ -129,6 +129,7 @@ def get(self, path: str, params: Dict[str, Any] = {}) -> Any: self.host + path, headers=self.request_headers("GET", path), params=params + timeout=10 ) self.raise_if_bad_response(response) return response.json() @@ -231,4 +232,4 @@ async def on_error(self, error): async def on_close(self, close_status_code, close_msg): """Callback when WebSocket connection is closed.""" - print("WebSocket connection closed with code:", close_status_code, "and message:", close_msg) \ No newline at end of file + print("WebSocket connection closed with code:", close_status_code, "and message:", close_msg)