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
urllib.py: AttributeError on BadStatusLine #42892
Comments
PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC in httplib errcode -1 & except BadStatusLine, e:
### hmm. if getresponse() ever closes the
socket on a bad request,
### then we are going to have problems with
self.sock
use it?
after any protocol error self.headers = None
return -1, e.line, None
fp = h.getfile() delivers None in urllib.URLopener.open_http and this is traceback leading to an AttributeError Traceback (most recent call last): File "<interactive input>", line 1, in ? As I get this error rarely I cannot reproduce exactly how self._conn.sock.makefile('rb', 0) delivers None in that case. |
Logged In: YES This may be a duplicate of a bug submitted by Bram Cohen. |
Logged In: YES I should add that the other bug is still open. |
Fixed that bug finally in rev. 54376, 54377 (2.5). |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: