diff --git a/src/molecule/config.py b/src/molecule/config.py index 54425c42a4..d13cec64bb 100644 --- a/src/molecule/config.py +++ b/src/molecule/config.py @@ -264,10 +264,8 @@ def collection(self) -> CollectionData | None: return None galaxy_file = self.collection_directory / "galaxy.yml" - if galaxy_file.exists(): - galaxy_data = util.safe_load_file(galaxy_file) - return cast(CollectionData, galaxy_data) - return None + galaxy_data = util.safe_load_file(galaxy_file) + return cast(CollectionData, galaxy_data) @cached_property def dependency(self) -> Dependency | None: