From 64db854b7e35972ba312bd545c3bd96a9bba1d38 Mon Sep 17 00:00:00 2001 From: sanderegg <35365065+sanderegg@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:15:32 +0200 Subject: [PATCH] fix --- .../service-library/src/servicelib/deferred_tasks/_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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