Fix error type

Signed-off-by: Gabor Mezei <[email protected]>
This commit is contained in:
Gabor Mezei
2024-07-25 11:00:07 +02:00
parent de6e192fd4
commit 8d72ac60b3
+2 -2
View File
@@ -413,8 +413,8 @@ class ConfigFile(metaclass=ABCMeta):
filename = candidate
break
else:
raise ValueError(f'{name} configuration file not found: '
f'{filename if filename else default_path}')
raise FileNotFoundError(f'{name} configuration file not found: '
f'{filename if filename else default_path}')
self.filename = filename
self.templates = []