projects
/
invirt/packages/invirt-images.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dae40f4
)
Catch error if fetch_image fails
dev
prod
author
Greg Brockman
<gdb@mit.edu>
Mon, 1 Feb 2010 03:44:53 +0000
(22:44 -0500)
committer
Greg Brockman
<gdb@mit.edu>
Mon, 1 Feb 2010 03:44:53 +0000
(22:44 -0500)
svn path=/trunk/packages/invirt-images/; revision=2975
invirt-images
patch
|
blob
|
history
diff --git
a/invirt-images
b/invirt-images
index
9d3c695
..
2175ead
100755
(executable)
--- a/
invirt-images
+++ b/
invirt-images
@@
-142,7
+142,12
@@
def load_image(cdrom):
"""
if cdrom.mirror_id is None:
return
- temp_file = fetch_image(cdrom)
+ try:
+ temp_file = fetch_image(cdrom)
+ except InvirtImageException, e:
+ print >>sys.stderr, 'ERROR: %s. Skipping.' % e
+ return
+
try:
st_size = os.stat(temp_file).st_size
if not st_size: