From 34a4d813361dc10fb26e0953145b35913a439194 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 20 Sep 2022 09:39:20 -0400 Subject: [PATCH] Agent: Reraise IslandAPIError in handle_island_errors() --- .../island_api_client/http_island_api_client.py | 2 ++ 1 file changed, 2 insertions(+) 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 ab444c3e8..1d816f6b9 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 @@ -35,6 +35,8 @@ 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)