You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
assignee='https://github.com/orsenthil'closed_at=<Date2012-12-23.17:14:40.299>created_at=<Date2012-08-16.20:35:57.181>labels= ['library', 'type-crash']
title='AttributeError from HTTPError when using digest auth'updated_at=<Date2014-03-13.16:01:10.256>user='https://bugs.python.org/scjody'
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).
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 inforeturnself.headers
AttributeError: 'HTTPError' object has no attribute 'headers'