-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute 'settimeout'
when using requests.session and connection gets closed
#48
Comments
I'm having same trouble. |
I think I might have a fix -- I will try to send a PR shortly. |
msabramo
added a commit
to msabramo/vcrpy
that referenced
this issue
Nov 26, 2013
This is a test for issue kevin1024GH-48.
5ba4000 is a test that illustrates the problem
|
Merged
Awesome, thanks! I'm traveling abroad on vacation right now but I will probably have a chance to check this out this weekend. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code that VCRpy has for removing and setting
sock
toNone
(in order to work around some behavior ofrequests
apparently) causes problems if you:requests.session
The result of these steps is an exception being raised:
AttributeError: 'NoneType' object has no attribute 'settimeout'
.Using the code in this gist: https://gist.github.com/msabramo/7664462
The text was updated successfully, but these errors were encountered: