Catch RequestException in influxdb writer (#23508)
This commit is contained in:
1 parent
2fecc7d5a4
commit
41d9bd42af
1 file changed
+3
-1
@@ -321,7 +321,9 @@ class InfluxThread(threading.Thread):
|
||||
|
||||
_LOGGER.debug("Wrote %d events", len(json))
|
||||
break
|
||||
except (exceptions.InfluxDBClientError, IOError):
|
||||
except (exceptions.InfluxDBClientError,
|
||||
requests.exceptions.RequestException,
|
||||
IOError):
|
||||
if retry < self.max_tries:
|
||||
time.sleep(RETRY_DELAY)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user