mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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))
|
||||
break
|
||||
except (exceptions.InfluxDBClientError, IOError) as err:
|
||||
except (
|
||||
exceptions.InfluxDBClientError,
|
||||
exceptions.InfluxDBServerError,
|
||||
IOError,
|
||||
) as err:
|
||||
if retry < self.max_tries:
|
||||
time.sleep(RETRY_DELAY)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user