Message168407
| Author |
scjody |
| Recipients |
scjody |
| Date |
2012年08月16日.20:35:56 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1345149357.77.0.903430006119.issue15701@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I attempted to connect to a site using urllib2 and digest authentication and it raised an HTTPError (due to an incorrect username and password, which is expected). I attempted to run the info() method of the HTTPError to get more information, but it failed with an AttributeError (this is the bug).
$ ./reproducer.py
Traceback (most recent call last):
File "./reproducer.py", line 16, in <module>
print e.info()
File "/usr/lib/python2.6/urllib.py", line 987, in info
return self.headers
AttributeError: 'HTTPError' object has no attribute 'headers'
$ python --version
Python 2.6.6 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年08月16日 20:35:57 | scjody | set | recipients:
+ scjody |
| 2012年08月16日 20:35:57 | scjody | set | messageid: <1345149357.77.0.903430006119.issue15701@psf.upfronthosting.co.za> |
| 2012年08月16日 20:35:57 | scjody | link | issue15701 messages |
| 2012年08月16日 20:35:57 | scjody | create |
|