diff --git a/packages/service-library/src/servicelib/deferred_tasks/_utils.py b/packages/service-library/src/servicelib/deferred_tasks/_utils.py index cd288363465..bcff7e274e1 100644 --- a/packages/service-library/src/servicelib/deferred_tasks/_utils.py +++ b/packages/service-library/src/servicelib/deferred_tasks/_utils.py @@ -30,6 +30,8 @@ async def wrapper(*args, **kwargs): f"Please check code at: '{func.__module__}.{func.__name__}'" ) _logger.exception(msg) - raise RejectMessage(msg) from e + # NOTE: the new version of fast-depends allows to pass a parameter until then we keep it simple + # raise RejectMessage(reason=msg) from e + raise RejectMessage from e return wrapper