We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef6d35 commit 34c3fdfCopy full SHA for 34c3fdf
src/dependency_injector/providers.pxd
@@ -575,9 +575,12 @@ cdef inline object __call(
575
asyncio.ensure_future(args_kwargs_ready)
576
577
return future_result
578
-
579
- return call(*args, **kwargs)
580
+ try:
+ return call(*args, **kwargs)
+ except Exception as e:
581
+ e.__traceback__.tb_frame.f_locals.clear()
582
+ e.__traceback__.tb_frame.f_locals.update(locals())
583
+ raise e
584
585
cdef inline void __async_call_callback(object future_result, object call, object future):
586
try:
0 commit comments