X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-images.git/blobdiff_plain/dae40f489ab05411376b3013ec3c5f840d24b570..9c9edbcbcd10d82a6d1859f0b86ac6bb5a0d03e3:/invirt-images diff --git a/invirt-images b/invirt-images index 9d3c695..2175ead 100755 --- 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: