mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Improve influxdb error handling (#27225)
This commit is contained in:
parent
46ac98379e
commit
9c08c35881
@ -353,7 +353,11 @@ class InfluxThread(threading.Thread):
|
|||||||
|
|
||||||
_LOGGER.debug("Wrote %d events", len(json))
|
_LOGGER.debug("Wrote %d events", len(json))
|
||||||
break
|
break
|
||||||
except (exceptions.InfluxDBClientError, IOError) as err:
|
except (
|
||||||
|
exceptions.InfluxDBClientError,
|
||||||
|
exceptions.InfluxDBServerError,
|
||||||
|
IOError,
|
||||||
|
) as err:
|
||||||
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