Skip to content

Commit 71c2e43

Browse files
committed
Merge pull request influxdata#218 from influxdb/requests_timeouts
influxdb08: Requests - catch Timeouts
2 parents 45f2fe2 + 9087455 commit 71c2e43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

influxdb/influxdb08/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ def request(self, url, method='GET', params=None, data=None,
242242
timeout=self._timeout
243243
)
244244
break
245-
except requests.exceptions.ConnectionError as e:
245+
except (requests.exceptions.ConnectionError,
246+
requests.exceptions.Timeout) as e:
246247
if i < 2:
247248
continue
248249
else:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy