Skip to content

Commit

Permalink
remove unnecessary try/except
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Luar <[email protected]>
  • Loading branch information
luarss committed Dec 25, 2024
1 parent 502e1a6 commit 0ff0e0a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tools/AutoTuner/src/autotuner/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,7 @@ def parse_tunable_variables():

# Read from variables.yaml and get variables with tunable = 1
with open(vars_path) as file:
try:
result = yaml.safe_load(file)
except yaml.YAMLError as exc:
print("[ERROR TUN-0018] Error parsing variables.yaml.")
sys.exit(1)
result = yaml.safe_load(file)
variables = {key for key, value in result.items() if value.get("tunable", 0) == 1}
return variables

Expand Down

0 comments on commit 0ff0e0a

Please sign in to comment.