Skip to content

Commit

Permalink
🐛Deferred tasks: issue with library changing its syntax (#6575)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg authored Oct 22, 2024
1 parent 682d4fa commit ce9ffe8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ce9ffe8

Please sign in to comment.