Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7292c3e8
authored
Mar 17, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accepts None values for size (for downloading disks)
parent
94379fb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
disk.py
+4
-1
No files found.
disk.py
View file @
7292c3e8
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment