Skip to content
Open
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion cog_safe_push/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ async def predict(
while prediction.status not in ["succeeded", "failed", "canceled"]:
await asyncio.sleep(0.5)
if time.time() - start_time > timeout_seconds:
raise PredictionTimeoutError()
raise PredictionTimeoutError(f"{prefix} Prediction timed out after {timeout_seconds} seconds")
prediction.reload()

duration = time.time() - start_time
Expand Down
Loading