From 96c16d67044d684a1326300e957b7a300eee6c50 Mon Sep 17 00:00:00 2001 From: "liuzhao@meicai.cn" Date: Tue, 28 Apr 2026 15:20:23 +0800 Subject: [PATCH] Add feature Co-authored-by: qqlin.lqq <735525520@qq.com> --- src/wavespeed/api/client.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/wavespeed/api/client.py b/src/wavespeed/api/client.py index 1668198..90b8087 100644 --- a/src/wavespeed/api/client.py +++ b/src/wavespeed/api/client.py @@ -183,11 +183,6 @@ def _submit( f"Failed to submit prediction after {self.max_connection_retries + 1} attempts" ) from e - # Should not reach here, but guard against it - raise last_error or RuntimeError( - f"Failed to submit prediction after {self.max_connection_retries + 1} attempts" - ) - def _get_result( self, request_id: str, timeout: float | None = None ) -> dict[str, Any]: @@ -265,12 +260,6 @@ def _get_result( f"after {self.max_connection_retries + 1} attempts" ) from e - # Should not reach here, but guard against it - raise last_error or RuntimeError( - f"Failed to get result for task {request_id} " - f"after {self.max_connection_retries + 1} attempts" - ) - def _wait( self, request_id: str,