Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image-creator
Commits
e9a2d318
Commit
e9a2d318
authored
Mar 28, 2013
by
Nikos Skalkotos
Browse files
Change a ValueError exception to FatalError
parent
88f83027
Changes
1
Show whitespace changes
Inline
Side-by-side
image_creator/disk.py
View file @
e9a2d318
...
...
@@ -152,7 +152,7 @@ class Disk(object):
self
.
out
.
success
(
'looks like an image file'
)
sourcedev
=
self
.
_losetup
(
self
.
source
)
elif
not
stat
.
S_ISBLK
(
mode
):
raise
Value
Error
(
"Invalid media source. Only block devices, "
raise
Fatal
Error
(
"Invalid media source. Only block devices, "
"regular files and directories are supported."
)
else
:
self
.
out
.
success
(
'looks like a block device'
)
...
...
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