Skip to content

Commit 9087455

Browse files
author
aviau
committed
influxdb08: Requests - catch Timeouts
1 parent 881a8c3 commit 9087455

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)