From 388b9fe4edeb8d1b4181553f522d6b8deea98b7a Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 21 Sep 2022 15:04:36 -0400 Subject: [PATCH] Agent: Add missing `return` to handle_island_api_errors() --- monkey/infection_monkey/master/control_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/master/control_channel.py b/monkey/infection_monkey/master/control_channel.py index 39fe94d1b..48b827f63 100644 --- a/monkey/infection_monkey/master/control_channel.py +++ b/monkey/infection_monkey/master/control_channel.py @@ -18,7 +18,7 @@ def handle_island_api_errors(func): @wraps(func) def wrapper(*args, **kwargs): try: - func(*args, **kwargs) + return func(*args, **kwargs) except IslandAPIError as err: raise IslandCommunicationError(err)