1
0
Fork 0
mirror of synced 2024-05-20 12:12:40 +12:00

Rename variable

This commit is contained in:
Serene-Arc 2022-07-22 15:45:09 +10:00
parent cb3415c62f
commit 23e20e6ddc

View file

@ -71,9 +71,9 @@ class Configuration(Namespace):
if not yaml_file_loc.exists():
logger.error(f'No YAML file found at {yaml_file_loc}')
return
with open(yaml_file_loc) as f:
with open(yaml_file_loc) as file:
try:
opts = yaml.load(f, Loader=yaml.FullLoader)
opts = yaml.load(file, Loader=yaml.FullLoader)
except yaml.YAMLError as e:
logger.error(f'Could not parse YAML options file: {e}')
return