Glances crash after installing module for shown GPU informations on Windows 10 #1800

This commit is contained in:
nicolargo 2021-01-24 14:31:50 +01:00
parent a676c875e5
commit 9957363ab7
3 changed files with 6 additions and 6 deletions

View File

@ -2,12 +2,12 @@
Glances Version 3
==============================================================================
Version 3.1.7
=============
Version 3.1.6.1
===============
This version is under development.
Bugs corrected:
Please have a look on the roadmap: https://github.com/nicolargo/glances/milestone/47
* Glances crash after installing module for shown GPU informations on Windows 10 #1800
Version 3.1.6
=============

View File

@ -29,7 +29,7 @@ import sys
# Global name
# Version should start and end with a numerical char
# See https://packaging.python.org/specifications/core-metadata/#version
__version__ = '3.1.7_beta'
__version__ = '3.1.6.1'
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
__license__ = 'LGPLv3'

View File

@ -498,7 +498,7 @@ class GlancesPlugin(object):
'additional': False,
'splittable': False,
'hidden': False,
'_zero': self.views[i[self.get_key()]][key]['_zero'] if i[self.get_key()] in self.views and key in self.views[i[self.get_key()]] else True}
'_zero': self.views[i[self.get_key()]][key]['_zero'] if i[self.get_key()] in self.views and key in self.views[i[self.get_key()]] and 'zero' in self.views[i[self.get_key()]][key] else True}
ret[i[self.get_key()]][key] = value
elif isinstance(self.get_raw(), dict) and self.get_raw() is not None:
# Stats are stored in a dict (ex: CPU, LOAD...)