Refurb linting

Lint with [refurb](https://github.com/dosisod/refurb) using `--disable 126 --python-version 3.9`
This commit is contained in:
OMEGARAZER
2022-11-30 17:19:02 -05:00
parent 5cb3c2c635
commit 831f49daa6
6 changed files with 12 additions and 12 deletions

View File

@@ -75,7 +75,7 @@ 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 file:
with yaml_file_loc.open() as file:
try:
opts = yaml.load(file, Loader=yaml.FullLoader)
except yaml.YAMLError as e: