Fix error type

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2024-06-28 17:18:37 +02:00
parent de6e192fd4
commit 8d72ac60b3
No known key found for this signature in database
GPG Key ID: 6310BD29B0BFF98C

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 = []