Try/catch if InfluxDB is stopped

This commit is contained in:
Nicolargo 2014-12-29 00:05:44 +01:00
parent 3f504b8741
commit ea254cf84a

View File

@ -129,4 +129,7 @@ class Export(GlancesExport):
"columns": columns,
"points": [points]
}]
self.client.write_points(data)
try:
self.client.write_points(data)
except Exception as e:
logger.critical("Can not export stats to InfluxDB (%s)" % e)