Avoid crash when getting NVMe attributes
This commit is contained in:
parent
710fcc29dc
commit
79abbcfaf8
1 changed files with 1 additions and 1 deletions
|
|
@ -539,7 +539,7 @@ class Disk(BaseObj):
|
|||
'raw': int(value),
|
||||
'raw_str': str(value),
|
||||
}
|
||||
except ValueError:
|
||||
except (TypeError, ValueError):
|
||||
# Ignoring invalid attribute
|
||||
LOG.error('Invalid NVMe attribute: %s %s', name, value)
|
||||
elif KEY_SMART in self.smartctl:
|
||||
|
|
|
|||
Loading…
Reference in a new issue