Skip to content

Commit

Permalink
Fixup: gen_data_config can't be None
Browse files Browse the repository at this point in the history
It is validated from the config
  • Loading branch information
Yngve S. Kristiansen committed Sep 3, 2024
1 parent a3fdc0f commit 091cf42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ert/config/observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def _handle_general_observation(

gen_data_config = ensemble_config.response_configs.get("gen_data", None)
assert isinstance(gen_data_config, GenDataConfig)
if not gen_data_config or response_key not in gen_data_config.keys:
if response_key not in gen_data_config.keys:
ConfigWarning.warn(
f"Observation {obs_key} on GEN_DATA key {response_key}, but GEN_DATA"
f" key {response_key} is non-existing"
Expand Down

0 comments on commit 091cf42

Please sign in to comment.