mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-24 18:43:58 +03:00
parent
cef6d35cfd
commit
4ecf6cdad2
|
@ -204,7 +204,11 @@ cdef class Provider(object):
|
||||||
if self.__last_overriding is not None:
|
if self.__last_overriding is not None:
|
||||||
result = self.__last_overriding(*args, **kwargs)
|
result = self.__last_overriding(*args, **kwargs)
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
result = self._provide(args, kwargs)
|
result = self._provide(args, kwargs)
|
||||||
|
except Exception as exc:
|
||||||
|
print(self)
|
||||||
|
raise exc
|
||||||
|
|
||||||
if self.is_async_mode_disabled():
|
if self.is_async_mode_disabled():
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in New Issue
Block a user