Improve influxdb error handling (#27225)

This commit is contained in:
definitio authored and Paulus Schoutsen committed 2019-10-05 12:43:57 -07:00
1 parent 46ac98379e
commit 9c08c35881
1 file changed
+5 -1
@@ -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: