[Skip-CI] More specific exception

This commit is contained in:
erik 2023-04-28 14:42:36 +02:00
parent 9db91c0a16
commit 2463d36674

View file

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