I have the same problem as in https://github.com/ets-labs/python-dependency-injector/issues/681: the resources are not closed in case functions are failing, and I have my exceptions handler on a higher level then functions I inject.
So I suggest the change to close the dependencies in any case.
I have the same problem as in https://github.com/ets-labs/python-dependency-injector/issues/681: the resources are not closed in case functions are failing, and I have my exceptions handler on a higher level then functions I inject. So I suggest the change to close the dependencies in any case.