StreamBody.__aenter__ tries to accessself.session._checked_out_sockets, which doesn't exist. As far as I can tell, this is the only occurrence of _checked_out_sockets in the whole project.
Traceback (most recent call last):
File "<stdin>", line 10, in <module>
[trio and other third party calls]
File "<stdin>", line 6, in main
File ".../lib/python3.6/site-packages/asks/response_objects.py", line 182, in __aenter__
self.session._checked_out_sockets.remove(self.sock)
AttributeError: 'Session' object has no attribute '_checked_out_sockets'
StreamBody.__aenter__
tries to accessself.session._checked_out_sockets
, which doesn't exist. As far as I can tell, this is the only occurrence of_checked_out_sockets
in the whole project.Running this minimal example:
results in: