Add providers log on error.
This commit is contained in:
whysage 2021-11-01 23:35:50 +02:00
parent cef6d35cfd
commit 4ecf6cdad2

View File

@ -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