From f811f91d7385fa85a7f12c804d693815fbfcf216 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 21 Sep 2022 15:04:51 -0400 Subject: [PATCH] Agent: Add missing `return` to convert_json_error_to_island_api_error() --- .../island_api_client/http_island_api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 467f97252..d34a4ac6f 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 @@ -60,7 +60,7 @@ def convert_json_error_to_island_api_error(fn): @functools.wraps(fn) def wrapper(*args, **kwargs): try: - fn(*args, **kwargs) + return fn(*args, **kwargs) except json.JSONDecodeError as err: raise IslandAPIRequestFailedError(err)