Lines Matching refs:exc
260 if isinstance(retry_args.exc, (http_client.BadStatusLine,
264 type(retry_args.exc).__name__, retry_args.exc)
265 elif isinstance(retry_args.exc, socket.error):
266 logging.debug('Caught socket error, retrying: %s', retry_args.exc)
267 elif isinstance(retry_args.exc, socket.gaierror):
269 'Caught socket address error, retrying: %s', retry_args.exc)
270 elif isinstance(retry_args.exc, socket.timeout):
272 'Caught socket timeout error, retrying: %s', retry_args.exc)
273 elif isinstance(retry_args.exc, httplib2.ServerNotFoundError):
275 'Caught server not found error, retrying: %s', retry_args.exc)
276 elif isinstance(retry_args.exc, ValueError):
281 retry_args.exc)
282 elif (isinstance(retry_args.exc,
284 (retry_args.exc.status == TOO_MANY_REQUESTS or
285 retry_args.exc.status >= 500)):
288 retry_args.exc)
289 elif isinstance(retry_args.exc, exceptions.RequestError):
292 elif isinstance(retry_args.exc, exceptions.BadStatusCodeError):
294 retry_args.exc.status_code)
295 elif isinstance(retry_args.exc, exceptions.RetryAfterError):
297 retry_after = retry_args.exc.retry_after
302 retry_args.http_request.url, retry_args.exc)