Skip to content

Commit 0386d55

Browse files
authored
Catch exceptions (#390)
2 parents 2c7f166 + 82d3ae1 commit 0386d55

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

python/langsmith/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def upload_csv(
784784

785785
@staticmethod
786786
def _run_transform(
787-
run: Union[ls_schemas.Run, dict, ls_schemas.RunLikeDict]
787+
run: Union[ls_schemas.Run, dict, ls_schemas.RunLikeDict],
788788
) -> dict:
789789
if hasattr(run, "dict") and callable(getattr(run, "dict")):
790790
run_create = run.dict() # type: ignore
@@ -3193,6 +3193,10 @@ def _tracing_thread_handle_batch(
31933193
update = [it.item for it in batch if it.action == "update"]
31943194
try:
31953195
client.batch_ingest_runs(create=create, update=update, pre_sampled=True)
3196+
except Exception:
3197+
# exceptions are logged elsewhere, but we need to make sure the
3198+
# background thread continues to run
3199+
pass
31963200
finally:
31973201
for _ in batch:
31983202
tracing_queue.task_done()

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "langsmith"
3-
version = "0.0.84"
3+
version = "0.0.85"
44
description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform."
55
authors = ["LangChain <support@langchain.dev>"]
66
license = "MIT"

0 commit comments

Comments
 (0)