From 23e20e6ddc606b5af987a9294364425a25ec67a9 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Fri, 22 Jul 2022 15:45:09 +1000 Subject: [PATCH] Rename variable --- bdfr/configuration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bdfr/configuration.py b/bdfr/configuration.py index 79a208b..e3f1758 100644 --- a/bdfr/configuration.py +++ b/bdfr/configuration.py @@ -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