Correct bug with server in version 1.5.1

This commit is contained in:
Nicolas Hennion 2012-11-24 10:30:07 +01:00
parent 5ba69df379
commit 499cced514

View File

@ -832,7 +832,10 @@ class glancesStats:
# SENSORS
if (self.client_tag):
if input_stats != {}:
self.sensors = input_stats["sensors"]
try:
self.sensors = input_stats["sensors"]
except:
self.sensors = {}
else:
if (sensors_tag):
self.sensors = self.glancesgrabsensors.get()