Home
last modified time | relevance | path

Searched refs:URLError (Results 1 – 25 of 60) sorted by relevance

123

/external/python/cpython3/Lib/urllib/
Derror.py19 class URLError(OSError): class
35 class HTTPError(URLError, urllib.response.addinfourl):
73 class ContentTooShortError(URLError):
76 URLError.__init__(self, message)
Drequest.py102 from urllib.error import URLError, HTTPError, ContentTooShortError
1186 raise URLError("qop '%s' is not supported." % qop)
1266 raise URLError('no host given')
1308 raise URLError('no host given')
1345 raise URLError(err)
1413 raise URLError('unknown url type: %s' % type)
1475 raise URLError("file:// scheme is supported only on localhost")
1516 raise URLError(exp)
1517 raise URLError('file not on local host')
1531 raise URLError('ftp error: no host given')
[all …]
/external/openscreen/tools/
Dcurlish.py13 from urllib2 import HTTPError, URLError, urlopen
15 from urllib.error import HTTPError, URLError
36 except URLError as e:
/external/python/cpython3/Doc/library/
Durllib.error.rst15 raised by :mod:`urllib.request`. The base exception class is :exc:`URLError`.
19 .. exception:: URLError
30 :exc:`URLError` has been made a subclass of :exc:`OSError` instead
36 Though being an exception (a subclass of :exc:`URLError`), an
/external/python/cpython2/Lib/test/
Dtest_urllib2net.py30 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError)
107 None, urllib2.URLError),
119 ('file:///nonsensename/etc/passwd', None, urllib2.URLError),
205 urlopen = _wrap_with_retry_thrice(urlopen, urllib2.URLError)
222 except urllib2.URLError as err:
Dtest_urllib2_localnet.py383 except urllib2.URLError:
509 except urllib2.URLError, f:
556 with self.assertRaises(urllib2.URLError):
568 with self.assertRaises(urllib2.URLError):
Dtest_urllib2.py362 raise urllib2.URLError("blah")
477 from urllib2 import URLError
487 self.assertRaises(URLError, o.open, scheme+"://example.com/")
543 self.assertRaises(urllib2.URLError, o.open, req)
741 self.assertRaises(urllib2.URLError,
767 except (urllib2.URLError, OSError):
806 self.assertRaises(urllib2.URLError, h.do_open, http, req)
/external/boringssl/src/util/bot/
Dupdate_clang.py63 raise urllib2.URLError("only got %d of %d bytes" %
67 except urllib2.URLError as e:
153 except urllib2.URLError:
/external/python/cpython3/Lib/test/
Dtest_urllib2net.py39 urllib.error.URLError)
112 None, urllib.error.URLError),
125 urllib.error.URLError),
218 urlopen = _wrap_with_retry_thrice(urlopen, urllib.error.URLError)
Dtest_urllib2_localnet.py386 except urllib.error.URLError:
537 except urllib.error.URLError as f:
575 with self.assertRaises(urllib.error.URLError) as cm:
580 with self.assertRaises(urllib.error.URLError) as cm:
588 with self.assertRaises(urllib.error.URLError) as cm:
/external/python/cpython2/Lib/
Durllib2.py164 class URLError(IOError): class
177 class HTTPError(URLError, addinfourl):
1049 raise URLError("qop '%s' is not supported." % qop)
1126 raise URLError('no host given')
1164 raise URLError('no host given')
1198 raise URLError(err)
1266 raise URLError('unknown url type: %s' % type)
1376 raise URLError(msg)
1377 raise URLError('file not on local host')
1385 raise URLError('ftp error: no host given')
[all …]
/external/python/asn1crypto/dev/
Dcoverage.py23 from urllib2 import URLError
28 from urllib.error import URLError
595 raise URLError("Error %sing %s:\n%s" % (method, url, stderr))
599 raise URLError("Error %sing %s, response data malformed:\n%s" % (method, url, stdout))
617 raise URLError("Error %sing %s, no content-type header:\n%s" % (method, url, stdout))
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/
Dmeta.py33 except urllib.error.URLError:
/external/perfetto/src/trace_processor/python/perfetto/trace_processor/
Dshell.py43 except error.URLError:
/external/python/cpython2/Doc/howto/
Durllib2.rst187 *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
[all …]
/external/python/cpython3/Doc/howto/
Durllib2.rst204 *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
[all …]
/external/python/dateutil/
Dupdatezinfo.py32 except urllib_error.URLError as e:
/external/autotest/site_utils/
Dhwid_lib.py131 except (urllib2.URLError, urllib2.HTTPError) as e:
/external/skia/tools/
Dcompare_codereview.py52 except (urllib2.URLError,):
173 except (urllib2.URLError,):
/external/skqp/tools/
Dcompare_codereview.py52 except (urllib2.URLError,):
173 except (urllib2.URLError,):
/external/autotest/client/common_lib/
Dfile_utils.py164 except urllib.error.URLError as e:
/external/autotest/tko/
Dretrieve_logs.cgi93 except urllib2.URLError:
/external/skia/tools/skqp/
Dfind_commit_with_best_gold_results.py70 except urllib2.URLError:
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
Datrace_from_file_agent.py47 except urllib2.URLError:
/external/python/cpython3/Lib/test/support/
Dsocket_helper.py232 (isinstance(err, urllib.error.URLError) and

123