Correct a bug when a new client talk with a older one...

This commit is contained in:
Nicolas Hennion 2013-12-30 23:05:36 +01:00
parent 9af0cb5431
commit e57f9c9656

View File

@ -722,7 +722,12 @@ class glancesLimits:
return self.__limits_list
def getHide(self, stat):
return self.__limits_list[stat]
try:
self.__limits_list[stat]
except KeyError:
return []
else:
return self.__limits_list[stat]
def getCareful(self, stat):
return self.__limits_list[stat][0]