From 7d996c100e570242938a289ed8c5713e3cd4709d Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Thu, 22 Sep 2022 16:31:53 +0530 Subject: [PATCH] Agent: Remove repeated code in http_island_api_client.handle_island_errors() --- .../island_api_client/http_island_api_client.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/monkey/infection_monkey/island_api_client/http_island_api_client.py b/monkey/infection_monkey/island_api_client/http_island_api_client.py index 227c700e9..25901a9fc 100644 --- a/monkey/infection_monkey/island_api_client/http_island_api_client.py +++ b/monkey/infection_monkey/island_api_client/http_island_api_client.py @@ -48,8 +48,6 @@ def handle_island_errors(fn): raise IslandAPIError(err) except TimeoutError as err: raise IslandAPITimeoutError(err) - except IslandAPIError as err: - raise err except Exception as err: raise IslandAPIError(err)