Skip to content

Commit

Permalink
Fix bug with submit_sleep and empty string value
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Nov 24, 2023
1 parent f0f6297 commit 26d1f94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ert/config/queue_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ def from_dict(cls, config_dict: ConfigDict) -> QueueConfig:
" you are effectively replacing the default value provided."
)

if option_name == "SUBMIT_SLEEP" and selected_queue_system == queue_system:
if (
option_name == "SUBMIT_SLEEP"
and selected_queue_system == queue_system
and values
):
submit_sleep = float(values[0])

for queue_system_val in queue_options:
Expand Down

0 comments on commit 26d1f94

Please sign in to comment.