Lines Matching refs:URLError
187 *urlopen* raises :exc:`URLError` when it cannot handle a response (though as
191 :exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific case of
194 URLError section in Handling Exceptions
197 Often, URLError is raised because there is no network connection (no route to
206 ... except urllib2.URLError as e:
330 So if you want to be prepared for :exc:`HTTPError` *or* :exc:`URLError` there are two
339 from urllib2 import Request, urlopen, URLError, HTTPError
346 except URLError as e:
355 The ``except HTTPError`` *must* come first, otherwise ``except URLError``
363 from urllib2 import Request, urlopen, URLError
367 except URLError as e: