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)