From d12c9882557bb6a0589a54df1d9d03d64f3221ee Mon Sep 17 00:00:00 2001 From: lukas Date: Mon, 5 Jun 2023 13:02:39 +0200 Subject: [PATCH] adding missing return type --- eodal/mapper/mapper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eodal/mapper/mapper.py b/eodal/mapper/mapper.py index 362e072..7624596 100644 --- a/eodal/mapper/mapper.py +++ b/eodal/mapper/mapper.py @@ -222,6 +222,7 @@ def from_yaml(cls, fpath: str | Path): # overwrite data_source attribute with content from # file in case it is available configs.data_source = yaml_content.get('data_source', 'UNKNOWN') + return configs except KeyError as e: raise ValueError(f"Missing keys in yaml file: {e}")