[issue25633] The documentation for urllib.request should mention http.client.HTTPException

2021-12-06 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> out of date
stage: needs patch -> resolved
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25633] The documentation for urllib.request should mention http.client.HTTPException

2021-11-30 Thread Irit Katriel


Irit Katriel  added the comment:

Issue22797 was resolved by being more specific about when a URLError is raised, 
rather than mentioning other exceptions as well. Do we want to do more than 
that, or can this be closed as well?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25633] The documentation for urllib.request should mention http.client.HTTPException

2015-11-16 Thread Martin Panter

Martin Panter added the comment:

Closely related: Issue 22797 proposes documenting some circumstances where 
ValueError is raised directly. Perhaps you can review and enhance the patch 
already there.

Also related:

Issue 13736 proposes to wrap http.client exceptions (which I disagree with), 
and add extra wrapping for socket.error (which I may agree with for 
consistency), and document existing “exception leaks”.

Issue 6471 discusses awkwardnesses of getting at the underlying exception that 
URLError wraps.

--
nosy: +martin.panter
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25633] The documentation for urllib.request should mention http.client.HTTPException

2015-11-16 Thread jon orebro

New submission from jon orebro:

The documentation for urllib.request should mention that a robust client using 
urllib.request must be prepared for exceptions of type 
http.client.HTTPException in addition to urllib.error.URLError.

Example: the server breaks HTTP and returns an empty status line and we get a 
http.client.BadStatusLine.

--
assignee: docs@python
components: Documentation
messages: 254720
nosy: docs@python, jon orebro
priority: normal
severity: normal
status: open
title: The documentation for urllib.request should mention 
http.client.HTTPException
type: behavior
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com