Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Aug 20, 2024
1 parent eb7f578 commit 62b3745
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2997,11 +2997,15 @@ def clone_public_dataset(
)
ds = source_client.read_shared_dataset(token_uuid)
dataset_name = dataset_name or ds.name
if self.has_dataset(dataset_name=dataset_name):
try:
ds = self.read_dataset(dataset_name=dataset_name)
logger.info(
f"Dataset {dataset_name} already exists in your tenant. Skipping."
)
return
return str(ds.id)
except ls_utils.LangSmithNotFoundError:
pass

try:
# Fetch examples first
examples = list(source_client.list_shared_examples(token_uuid))
Expand Down

0 comments on commit 62b3745

Please sign in to comment.