From b54630f609905805f7dc7d24b88f2f1ca0dbccce Mon Sep 17 00:00:00 2001 From: Ben Plotnick Date: Thu, 18 Jan 2018 13:14:30 -0800 Subject: [PATCH] add twisted.internet.error.DNSLookupError and twisted.internet.error.ConnectingCancelledError to the list of Fido timeouts --- bravado/fido_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bravado/fido_client.py b/bravado/fido_client.py index d2af7874..1ac08a90 100644 --- a/bravado/fido_client.py +++ b/bravado/fido_client.py @@ -8,6 +8,7 @@ import requests import requests.structures import six +import twisted from bravado_core.response import IncomingResponse from yelp_bytes import to_bytes @@ -171,7 +172,9 @@ class FidoFutureAdapter(FutureAdapter): retrieve results. """ - timeout_errors = [fido.exceptions.HTTPTimeoutError] + timeout_errors = (fido.exceptions.HTTPTimeoutError, + twisted.internet.error.DNSLookupError, + twisted.internet.error.ConnectingCancelledError,) def __init__(self, eventual_result): self._eventual_result = eventual_result