Skip to content

Commit d96abc3

Browse files
Catch ReadTimout Exception
1 parent e5c577e commit d96abc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/client_nsx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
eventlet.monkey_patch()
44

55
from requests import Response
6-
from requests.exceptions import ConnectionError, ConnectTimeout, HTTPError
6+
from requests.exceptions import ConnectionError, ConnectTimeout, HTTPError, ReadTimeout
77
from oslo_utils import versionutils
88
from oslo_log import log as logging
99
from oslo_config import cfg
@@ -156,7 +156,7 @@ def decorator(self, *args, **kwargs):
156156
response.request.method]
157157
LOG.error("Request=%s Response=%s", request_info, last_err, extra=sentry_extra)
158158
break
159-
except (HTTPError, ConnectionError, ConnectTimeout) as err:
159+
except (HTTPError, ConnectionError, ConnectTimeout, ReadTimeout) as err:
160160
last_err = err
161161
m = response.request.method if response else "UNKNOWN"
162162
sentry_extra["fingerprint"] = [RetryPolicy._create_sentry_fingerprint(kwargs.get("path", '')), m]

0 commit comments

Comments
 (0)