[Skip-CI] More specific exception

This commit is contained in:
erik 2023-04-28 14:42:36 +02:00 committed by Michael Jerger
parent 82279011fa
commit 7cace08a87

View file

@ -25,7 +25,7 @@ class FileHandler(ABC):
case '.py':
file_handler = PythonFileHandler()
case _:
raise Exception(
raise RuntimeError(
f'The file type "{config_file_type}" is not implemented')
# TODO: Attribute is only set in classmethod. Should this be initialized outside of this class?
file_handler.config_file_path = file_path