Skip to content

Commit 715480b

Browse files
committed
Re-raise with reference on error
1 parent cef6d35 commit 715480b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/dependency_injector/providers.pxd

+4-2
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,10 @@ cdef inline object __call(
575575
asyncio.ensure_future(args_kwargs_ready)
576576

577577
return future_result
578-
579-
return call(*args, **kwargs)
578+
try:
579+
return call(*args, **kwargs)
580+
except Exception as exception:
581+
raise Exception(call) from exception
580582

581583

582584
cdef inline void __async_call_callback(object future_result, object call, object future):

0 commit comments

Comments
 (0)