[Python-bugs-list] [Bug #127562] variable return from urllib.FancyURLopener.http_error_401

noreply@sourceforge.net noreply@sourceforge.net
Thu, 04 Jan 2001 11:06:25 -0800


Bug #127562, was updated on 2001-Jan-04 11:06
Here is a current snapshot of the bug.

Project: Python
Category: None
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: montanaro
Assigned to : nobody
Summary: variable return from urllib.FancyURLopener.http_error_401

Details: The block structure in urllib.FancyURLopener.http_error_401
suggests that there are cases where it can return None or the result of
retrying basic http/https authentication.  It seems to me that either you
should assume that the response headers will always have valid contents (a
www-authenticate of the proper format) or do something in the case where
they don't (perhaps raise an exception).  I suspect all you'd be doing is
protecting the application against a broken server, but I think those cases
should still be handled.


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=127562&group_id=5470