Skip to content

Commit

Permalink
fix missing dict key error
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardorittner committed Jun 4, 2024
1 parent c779d4a commit 4e214bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_dwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def run_dwt_suite(dir: str):
config_files = sorted(glob.glob(join(dir, "*.yaml")))
for file in config_files:
config = read_yaml(file, False)
if config["run"] is None or config["run"] != "true":
if config.get("run") is None or config["run"] != "true":
print(f"{file} is not set to run. Moving on to next one")
continue

Expand Down

0 comments on commit 4e214bb

Please sign in to comment.