[Patches] [ python-Patches-1750931 ] make build_opener raise exception when not passed a handler
SourceForge.net
noreply at sourceforge.net
Tue Jul 10 06:14:47 CEST 2007
Patches item #1750931, was opened at 2007-07-10 04:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1750931&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.6
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Robert Renaud (silentstrike)
Assigned to: Nobody/Anonymous (nobody)
Summary: make build_opener raise exception when not passed a handler
Initial Comment:
A bug bit me where I had code that looked like
urllib2.build_opener(func_returning_cookie_jar())
instead of
urllib2.build_opener(HTTPCookieProcessor(func_returning_cookie_jar())
the subsequent http request went through just fine, except it didn't send the cookie. Nothing complained, except me, now.
Throwing the exception deeper in the code made the unittest fail, so I suspect the "silently ignore handlers which don't actually do any handling" behavior might be by design, but it seems terrible to me.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1750931&group_id=5470
More information about the Patches
mailing list