Skip to content

Commit

Permalink
Fix double reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Oct 23, 2024
1 parent c0d22f5 commit 6d74823
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1721,15 +1721,16 @@ def _send_multipart_req(
stop_after_attempt=1,
_context=_context,
)
break
except ls_utils.LangSmithConflictError:
break
except (
ls_utils.LangSmithConnectionError,
ls_utils.LangSmithRequestTimeout,
ls_utils.LangSmithAPIError,
):
) as exc:
if idx == attempts:
raise
logger.warning(f"Failed to multipart ingest runs: {exc}")
else:
continue
except Exception as e:
Expand Down

0 comments on commit 6d74823

Please sign in to comment.