Add TypeError

This commit is contained in:
twangboy 2019-06-05 10:39:11 -06:00
parent 5b4160d122
commit 0fc88fb437
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -625,7 +625,7 @@ def get_system_info():
ret['processor_cores'] += system.NumberOfCores
try:
ret['processor_cores_enabled'] += system.NumberOfEnabledCore
except AttributeError:
except (AttributeError, TypeError):
pass
if ret['processor_cores_enabled'] == 0:
ret.pop('processor_cores_enabled', False)