mirror of
https://opendev.org/x/pyghmi
synced 2025-01-13 19:27:48 +00:00
Handle missing properties
Missing properties happen on older firmware, return blank info. Change-Id: I1972ab95a15ebe86180462158d3ea78a2c3b4a1b
This commit is contained in:
parent
f8c92bd9de
commit
c25046b23f
@ -46,6 +46,8 @@ def fixup_uuid(uuidprop):
|
||||
|
||||
|
||||
def fixup_str(propstr):
|
||||
if propstr is None:
|
||||
return ''
|
||||
return ''.join([chr(int(c, 16)) for c in propstr.split()]).strip(
|
||||
' \xff\x00')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user