mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 14:12:21 +03:00
Correct a bug when a new client talk with a older one...
This commit is contained in:
parent
9af0cb5431
commit
e57f9c9656
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user