From fe3706c0b4d1c3a098188e1e7ae362447bba9ad4 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 30 Aug 2022 12:58:10 +0530 Subject: [PATCH] Common: Remove agent_configuration.InvalidConfigurationError --- monkey/common/agent_configuration/__init__.py | 2 +- .../common/agent_configuration/agent_configuration.py | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) 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