From f7f4440b615bebe720f83bb11a0b0f248f2cffeb Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 28 Sep 2022 14:15:41 -0400 Subject: [PATCH] Island: Fix typo occured -> occurred --- .../cc/repository/i_agent_event_repository.py | 10 +++++----- monkey/monkey_island/cc/resources/agent_events.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/monkey/monkey_island/cc/repository/i_agent_event_repository.py b/monkey/monkey_island/cc/repository/i_agent_event_repository.py index d3b766bf6..005cc95e4 100644 --- a/monkey/monkey_island/cc/repository/i_agent_event_repository.py +++ b/monkey/monkey_island/cc/repository/i_agent_event_repository.py @@ -16,7 +16,7 @@ class IAgentEventRepository(ABC): Save an event to the repository :param event: The event to store in the repository - :raises StorageError: If an error occured while attempting to save an event + :raises StorageError: If an error occurred while attempting to save an event """ @abstractmethod @@ -25,7 +25,7 @@ class IAgentEventRepository(ABC): Retrieve all events stored in the repository :return: All stored events - :raises RetrievalError: If an error occured while attempting to retrieve the events + :raises RetrievalError: If an error occurred while attempting to retrieve the events """ @abstractmethod @@ -35,7 +35,7 @@ class IAgentEventRepository(ABC): :param event_type: Type of event :return: Stored events that have same type - :raises RetrievalError: If an error occured while attempting to retrieve the event + :raises RetrievalError: If an error occurred while attempting to retrieve the event """ @abstractmethod @@ -45,7 +45,7 @@ class IAgentEventRepository(ABC): :param tag: Tag of event :return: Stored events that have same tag - :raises RetrievalError: If an error occured while attempting to retrieve the event + :raises RetrievalError: If an error occurred while attempting to retrieve the event """ @abstractmethod @@ -55,7 +55,7 @@ class IAgentEventRepository(ABC): :param source: The ID of the agent that observed the events :return: Stored events that have same source - :raises RetrievalError: If an error occured while attempting to retrieve the event + :raises RetrievalError: If an error occurred while attempting to retrieve the event """ @abstractmethod diff --git a/monkey/monkey_island/cc/resources/agent_events.py b/monkey/monkey_island/cc/resources/agent_events.py index ec311f6e1..76651ba77 100644 --- a/monkey/monkey_island/cc/resources/agent_events.py +++ b/monkey/monkey_island/cc/resources/agent_events.py @@ -30,7 +30,7 @@ class AgentEvents(AbstractResource): serializer = self._event_serializer_registry[event[EVENT_TYPE_FIELD]] deserialized_event = serializer.deserialize(event) except (TypeError, ValueError) as err: - logger.debug(f"Error occured deserializing an event {event}: {err}") + logger.debug(f"Error occurred while deserializing an event {event}: {err}") return {"error": str(err)}, HTTPStatus.BAD_REQUEST self._agent_event_queue.publish(deserialized_event)