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 # SENSORS
if (self.client_tag): if (self.client_tag):
if input_stats != {}: if input_stats != {}:
try:
self.sensors = input_stats["sensors"] self.sensors = input_stats["sensors"]
except:
self.sensors = {}
else: else:
if (sensors_tag): if (sensors_tag):
self.sensors = self.glancesgrabsensors.get() self.sensors = self.glancesgrabsensors.get()