Home
last modified time | relevance | path

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

12

/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),
204 urlopen = _wrap_with_retry_thrice(urlopen, urllib2.URLError)
221 except urllib2.URLError as err:
Dtest_urllib2_localnet.py388 except urllib2.URLError:
517 except urllib2.URLError, f:
572 with self.assertRaises(urllib2.URLError):
584 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/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/autotest/client/common_lib/cros/fake_device_server/client_lib/
Dmeta.py33 except urllib2.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 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/autotest/site_utils/
Dhwid_lib.py63 except (urllib2.URLError, urllib2.HTTPError) as e:
Dhwid_lib_unittest.py73 @mock.patch('urllib2.urlopen', side_effect=urllib2.URLError('url error'))
/external/autotest/server/site_tests/provision_AutoUpdate/
Dprovision_AutoUpdate.py102 except (dev_server.DevServerException, urllib2.URLError) as e2:
/external/skia/tools/
Dcompare_codereview.py52 except (urllib2.URLError,):
173 except (urllib2.URLError,):
/external/autotest/client/common_lib/
Dfile_utils.py163 except urllib2.URLError as e:
/external/autotest/site_utils/chromeos_proxy/
Dswarming_bot_manager.py95 except urllib2.URLError as e:
/external/toolchain-utils/cwp/bartlett/test/
Dserver_tester.py95 except urllib2.URLError:
/external/autotest/client/common_lib/cros/
Ddev_server_unittest.py323 urllib2.URLError('urlopen connection timeout'))
377 refused = urllib2.URLError('[Errno 111] Connection refused')
404 refused = urllib2.URLError('[Errno 111] Connection refused')
430 refused = urllib2.URLError('[Errno 111] Connection refused')
556 refused = urllib2.URLError('[Errno 111] Connection refused')
586 refused = urllib2.URLError('[Errno 111] Connection refused')
796 refused = urllib2.URLError('[Errno 111] Connection refused')
Dchromedriver.py201 except urllib2.URLError as e:
/external/autotest/tko/
Dretrieve_logs.cgi78 except urllib2.URLError:
/external/toolchain-utils/cwp/interpreter/
Dapp_engine_pull.py59 except urllib2.URLError:
/external/autotest/tko/perf_upload/
Dperf_uploader.py269 except urllib2.URLError as e:
/external/autotest/server/
Dsite_autotest.py53 except (ImportError, urllib2.URLError):
/external/v8/tools/clang/scripts/
Dupdate.py119 raise urllib2.URLError("only got %d of %d bytes" %
123 except urllib2.URLError as e:
438 except urllib2.URLError:
/external/python/cpython2/Lib/distutils/command/
Dregister.py305 except urllib2.URLError, e:
/external/v8/tools/release/
Dcreate_release.py94 except urllib2.URLError: # pragma: no cover
Dpush_to_candidates.py136 except urllib2.URLError: # pragma: no cover
/external/python/cpython2/Doc/library/
Durllib2.rst71 Raises :exc:`URLError` on errors.
121 .. exception:: URLError
135 Though being an exception (a subclass of :exc:`URLError`), an :exc:`HTTPError`
512 value (ie. a response), or raises an exception (usually :exc:`URLError`).
572 It should raise :exc:`URLError`, unless a truly exceptional thing happens (for
573 example, :exc:`MemoryError` should not be mapped to :exc:`URLError`).
923 Raise a :exc:`URLError` exception.
/external/autotest/server/site_tests/enterprise_LongevityTrackerServer/
Denterprise_LongevityTrackerServer.py134 except urllib2.URLError as e:

12