forked from p15670423/monkey
Agent: Add missing `return` to convert_json_error_to_island_api_error()
This commit is contained in:
parent
388b9fe4ed
commit
f811f91d73
|
@ -60,7 +60,7 @@ def convert_json_error_to_island_api_error(fn):
|
||||||
@functools.wraps(fn)
|
@functools.wraps(fn)
|
||||||
def wrapper(*args, **kwargs):
|
def wrapper(*args, **kwargs):
|
||||||
try:
|
try:
|
||||||
fn(*args, **kwargs)
|
return fn(*args, **kwargs)
|
||||||
except json.JSONDecodeError as err:
|
except json.JSONDecodeError as err:
|
||||||
raise IslandAPIRequestFailedError(err)
|
raise IslandAPIRequestFailedError(err)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue