From df35cbbda52390f79d84d40c632c739447a27b50 Mon Sep 17 00:00:00 2001 From: Kern Attila Germain <5556461+KernAttila@users.noreply.github.com> Date: Tue, 28 Mar 2023 23:56:10 +0200 Subject: [PATCH] fix: change `FileExistsError` to a proper `FileNotFoundError` --- cuesubmit/cuesubmit/Config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cuesubmit/cuesubmit/Config.py b/cuesubmit/cuesubmit/Config.py index 5c5c3dc58..e348372e5 100644 --- a/cuesubmit/cuesubmit/Config.py +++ b/cuesubmit/cuesubmit/Config.py @@ -52,7 +52,7 @@ def _loadYamlFile(yaml_file): """ _yaml_file = os.path.expandvars(yaml_file) if not os.path.exists(_yaml_file): - raise FileExistsError(f'{_yaml_file=} not found') + raise FileNotFoundError(f'{_yaml_file=} not found') config_data = {} with open(_yaml_file, 'r') as data: try: @@ -77,7 +77,7 @@ def _expandRenderConfigValues(RENDER_CMDS): continue try: RENDER_CMDS[job_type] = _loadYamlFile(yaml_file=_sub_config_file) - except FileExistsError as error: + except FileNotFoundError as error: RENDER_CMDS[job_type] = { 'command': 'error', 'options': {