mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-08-11 21:57:47 +00:00
Fix existence check of config files
Signed-off-by: Gabor Mezei <[email protected]>
This commit is contained in:
@@ -228,9 +228,10 @@ class ConfigFile(metaclass=ABCMeta):
|
||||
if os.path.lexists(candidate):
|
||||
filename = candidate
|
||||
break
|
||||
else:
|
||||
raise FileNotFoundError(f'{name} configuration file not found: '
|
||||
f'{filename if filename else default_path}')
|
||||
|
||||
if not os.path.lexists(filename):
|
||||
raise FileNotFoundError(f'{name} configuration file not found: '
|
||||
f'{filename if filename else default_path}')
|
||||
|
||||
self.filename = filename
|
||||
self.templates = []
|
||||
|
||||
Reference in New Issue
Block a user