[Python-bugs-list] [Bug #127562] variable return from urllib.FancyURLopener.http_error_401
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 07 Jan 2001 15:31:15 -0800
Bug #127562, was updated on 2001-Jan-04 11:06
Here is a current snapshot of the bug.
Project: Python
Category: Python Library
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: montanaro
Assigned to : jhylton
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.
Follow-Ups:
Date: 2001-Jan-07 15:31
By: fdrake
Comment:
Assigned to Jeremy since he likes to play with urllib. ;-)
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=127562&group_id=5470