Commit 7292c3e8 by Guba Sándor

accepts None values for size (for downloading disks)

parent 94379fb3
...@@ -36,7 +36,10 @@ class Disk(object): ...@@ -36,7 +36,10 @@ class Disk(object):
if type not in self.TYPES: if type not in self.TYPES:
raise Exception('Invalid type: %s' % format) raise Exception('Invalid type: %s' % format)
self.type = type self.type = type
self.size = int(size) try:
self.size = int(size)
except:
self.size = None
self.base_name = base_name self.base_name = base_name
@classmethod @classmethod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment