Added TypeError possible exception

This commit is contained in:
Mike Scherbakov 2012-09-20 19:21:23 +04:00
parent ae366239d9
commit 353f656d93

View File

@ -145,7 +145,7 @@ class Node(Base, BasicValidator):
bytes = int(info['size']) * 512
terabytes = bytes / 1024.0 ** 4
result['hdd'] += terabytes
except (AttributeError, KeyError, ValueError):
except (AttributeError, KeyError, ValueError, TypeError):
result['hdd'] = None
return result