Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/wavespeed/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down Expand Up @@ -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,
Expand Down
Loading