mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Catch RequestException in influxdb writer (#23508)
This commit is contained in:
parent
2fecc7d5a4
commit
41d9bd42af
@ -321,7 +321,9 @@ class InfluxThread(threading.Thread):
|
|||||||
|
|
||||||
_LOGGER.debug("Wrote %d events", len(json))
|
_LOGGER.debug("Wrote %d events", len(json))
|
||||||
break
|
break
|
||||||
except (exceptions.InfluxDBClientError, IOError):
|
except (exceptions.InfluxDBClientError,
|
||||||
|
requests.exceptions.RequestException,
|
||||||
|
IOError):
|
||||||
if retry < self.max_tries:
|
if retry < self.max_tries:
|
||||||
time.sleep(RETRY_DELAY)
|
time.sleep(RETRY_DELAY)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user