Senthil Kumaran <orsent...@gmail.com> added the comment: On Thu, Mar 24, 2011 at 05:32:42PM +0000, Guido van Rossum wrote: > I still don't think we should raise URLError on the bad redirect; we > should treat it the same as a missing URI/Location header, and it > will raise HTTPError.
Agreed. Updated the hg repository by raising HTTPError instead of URLError. Thing to note - HTTPError does not change anything from the redirection. It would still give the code as 302 with an additional message saying that Redirection to 'newurl' is not allowed. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11662> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com