Skip to content

Commit 932409c

Browse files
committed
remove unnecessary try/except
Signed-off-by: Jack Luar <[email protected]>
1 parent ecb3bb6 commit 932409c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,7 @@ def parse_tunable_variables():
397397

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

0 commit comments

Comments
 (0)