diff --git a/asynq/decorators.py b/asynq/decorators.py index 5396788..543f713 100644 --- a/asynq/decorators.py +++ b/asynq/decorators.py @@ -117,9 +117,7 @@ async def wrapped(*_args, **_kwargs): if exception is None: result = generator.send(send) else: - result = generator.throw( - type(exception), exception, exception.__traceback__ - ) + result = generator.throw(exception) except StopIteration as exc: return exc.value