From 9c9edbcbcd10d82a6d1859f0b86ac6bb5a0d03e3 Mon Sep 17 00:00:00 2001 From: Greg Brockman Date: Sun, 31 Jan 2010 22:44:53 -0500 Subject: [PATCH] Catch error if fetch_image fails svn path=/trunk/packages/invirt-images/; revision=2975 --- invirt-images | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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: -- 1.7.9.5