Rename variable
This commit is contained in:
1 parent
cb3415c62f
commit
23e20e6ddc
1 file changed
+2
-2
@@ -71,9 +71,9 @@ class Configuration(Namespace):
|
|||||||
if not yaml_file_loc.exists():
|
if not yaml_file_loc.exists():
|
||||||
logger.error(f'No YAML file found at {yaml_file_loc}')
|
logger.error(f'No YAML file found at {yaml_file_loc}')
|
||||||
return
|
return
|
||||||
with open(yaml_file_loc) as f:
|
with open(yaml_file_loc) as file:
|
||||||
try:
|
try:
|
||||||
opts = yaml.load(f, Loader=yaml.FullLoader)
|
opts = yaml.load(file, Loader=yaml.FullLoader)
|
||||||
except yaml.YAMLError as e:
|
except yaml.YAMLError as e:
|
||||||
logger.error(f'Could not parse YAML options file: {e}')
|
logger.error(f'Could not parse YAML options file: {e}')
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in new issue
Block a user