diff --git a/monkey/common/agent_configuration/__init__.py b/monkey/common/agent_configuration/__init__.py index fb52b54e2..f207eadc6 100644 --- a/monkey/common/agent_configuration/__init__.py +++ b/monkey/common/agent_configuration/__init__.py @@ -1,4 +1,4 @@ -from .agent_configuration import AgentConfiguration, InvalidConfigurationError +from .agent_configuration import AgentConfiguration from .agent_sub_configurations import ( CustomPBAConfiguration, PluginConfiguration, diff --git a/monkey/common/agent_configuration/agent_configuration.py b/monkey/common/agent_configuration/agent_configuration.py index 80924257f..d47eb56b9 100644 --- a/monkey/common/agent_configuration/agent_configuration.py +++ b/monkey/common/agent_configuration/agent_configuration.py @@ -13,17 +13,6 @@ from .agent_sub_configurations import ( ) -class InvalidConfigurationError(Exception): - def __init__(self, message: str): - self._message = message - - def __str__(self) -> str: - return ( - f"Cannot construct an AgentConfiguration object with the supplied, invalid data: " - f"{self._message}" - ) - - class AgentConfiguration(MutableInfectionMonkeyBaseModel): keep_tunnel_open_time: PositiveFloat custom_pbas: CustomPBAConfiguration