diff --git a/src/ert/dark_storage/common.py b/src/ert/dark_storage/common.py index fabff023096..72e3963d0db 100644 --- a/src/ert/dark_storage/common.py +++ b/src/ert/dark_storage/common.py @@ -63,9 +63,9 @@ def gen_data_keys(ensemble: Ensemble) -> Iterator[str]: ): if report_steps is None: yield f"{key}@0" - return - for report_step in report_steps: - yield f"{key}@{report_step}" + else: + for report_step in report_steps: + yield f"{key}@{report_step}" def data_for_key(