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