From 3850638937d76ee70854866016494484b0edec7b Mon Sep 17 00:00:00 2001 From: John Wilkie <124276291+JBWilkie@users.noreply.github.com> Date: Mon, 3 Jun 2024 15:01:06 +0100 Subject: [PATCH] Corrected get_release() NotFound error (#849) --- darwin/dataset/remote_dataset.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/darwin/dataset/remote_dataset.py b/darwin/dataset/remote_dataset.py index db9db9689..0447a7713 100644 --- a/darwin/dataset/remote_dataset.py +++ b/darwin/dataset/remote_dataset.py @@ -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,