[Skip-CI] More specific exception
This commit is contained in:
parent
9db91c0a16
commit
2463d36674
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue