Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d8a39d7

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/dependency_injector/providers.pxd‎

Lines changed: 4 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /