[Python-bugs-list] [ python-Bugs-227562 ] variable return from urllib.FancyURLopener.http_error_401

nobody nobody@sourceforge.net
Mon, 26 Feb 2001 09:43:06 -0800


Artifact #227562, was updated on 2001-01-04 11:06
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=227562&group_id=5470

Category: Python Library
Group: None
Status: Open
Priority: 5
Submitted By: Skip Montanaro
Assigned to: Moshe Zadka
Summary: variable return from urllib.FancyURLopener.http_error_401

Initial Comment:
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.


----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr.
Date: 2001-01-07 15:31

Message:
Assigned to Jeremy since he likes to play with urllib.  ;-)

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=227562&group_id=5470