Lines Matching refs:URLError
204 *urlopen* raises :exc:`URLError` when it cannot handle a response (though as
208 :exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific case of
213 URLError section in Handling Exceptions
216 Often, URLError is raised because there is no network connection (no route to
225 ... except urllib.error.URLError as e:
348 So if you want to be prepared for :exc:`HTTPError` *or* :exc:`URLError` there are two
358 from urllib.error import URLError, HTTPError
365 except URLError as e:
374 The ``except HTTPError`` *must* come first, otherwise ``except URLError``
383 from urllib.error import URLError
387 except URLError as e: