From 9456a30bd923e6c0e095ea585c32a8236e3e11ed Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Mon, 19 Sep 2022 17:26:00 +0530 Subject: [PATCH] Agent: Remove unnecessary logic in _check_if_island_server() --- monkey/infection_monkey/network/relay/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/network/relay/utils.py b/monkey/infection_monkey/network/relay/utils.py index 875d49649..9a60eb7d5 100644 --- a/monkey/infection_monkey/network/relay/utils.py +++ b/monkey/infection_monkey/network/relay/utils.py @@ -54,7 +54,7 @@ def _check_if_island_server(server: str) -> bool: logger.debug(f"Trying to connect to server: {server}") try: - _ = IslandAPIClient(server) + IslandAPIClient(server) return True except IslandAPIConnectionError as err: