From 9c08c3588179d5adb8bfc3536f937537153d6231 Mon Sep 17 00:00:00 2001 From: definitio <37266727+definitio@users.noreply.github.com> Date: Sat, 5 Oct 2019 23:43:57 +0400 Subject: [PATCH] Improve influxdb error handling (#27225) --- homeassistant/components/influxdb/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/influxdb/__init__.py b/homeassistant/components/influxdb/__init__.py index 2bb5207aa85..86d489621ea 100644 --- a/homeassistant/components/influxdb/__init__.py +++ b/homeassistant/components/influxdb/__init__.py @@ -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: