Skip to content

Commit

Permalink
Corrected get_release() NotFound error (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWilkie authored Jun 3, 2024
1 parent b0609b9 commit 3850638
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion darwin/dataset/remote_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,11 @@ def get_release(self, name: str = "latest") -> "Release":
for release in releases:
if str(release.name) == name:
return release
raise NotFound(str(self.identifier))
raise NotFound(
str(
f"Release name {name} not found in dataset {self.name}. Please check this release exists for this dataset."
)
)

def split(
self,
Expand Down

0 comments on commit 3850638

Please sign in to comment.