From d8ac441c5963cba8f5335ab29dc1ed6461e1fed8 Mon Sep 17 00:00:00 2001 From: vakarisz Date: Tue, 21 Jun 2022 15:49:33 +0300 Subject: [PATCH] Agent: Fix configuration retrieval in _run_simulation --- monkey/infection_monkey/master/automated_master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/master/automated_master.py b/monkey/infection_monkey/master/automated_master.py index f79fd5f12..909d36de6 100644 --- a/monkey/infection_monkey/master/automated_master.py +++ b/monkey/infection_monkey/master/automated_master.py @@ -141,7 +141,7 @@ class AutomatedMaster(IMaster): try: config = AutomatedMaster._try_communicate_with_island( self._control_channel.get_config, CHECK_FOR_CONFIG_COUNT - )["config"] + ) except IslandCommunicationError as e: logger.error(f"An error occurred while fetching configuration: {e}") return