Added TypeError possible exception
This commit is contained in:
parent
ae366239d9
commit
353f656d93
@ -145,7 +145,7 @@ class Node(Base, BasicValidator):
|
|||||||
bytes = int(info['size']) * 512
|
bytes = int(info['size']) * 512
|
||||||
terabytes = bytes / 1024.0 ** 4
|
terabytes = bytes / 1024.0 ** 4
|
||||||
result['hdd'] += terabytes
|
result['hdd'] += terabytes
|
||||||
except (AttributeError, KeyError, ValueError):
|
except (AttributeError, KeyError, ValueError, TypeError):
|
||||||
result['hdd'] = None
|
result['hdd'] = None
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user