diff --git a/floatcsep/model.py b/floatcsep/model.py index 8347803..1d748a4 100644 --- a/floatcsep/model.py +++ b/floatcsep/model.py @@ -113,7 +113,9 @@ def get_source(self, zenodo_id: int = None, giturl: str = None, **kwargs) -> Non else: raise FileNotFoundError("Model has no path or identified") - if not os.path.exists(self.registry.dir) or not os.path.exists(self.registry.path): + if not os.path.exists(self.registry.dir) or not os.path.exists( + self.registry.get("path") + ): raise FileNotFoundError( f"Directory '{self.registry.dir}' or file {self.registry}' do not exist. " f"Please check the specified 'path' matches the repo "