urlfetcher: Fix error reporting if fetching kernel fails (bz 1017419)

This commit is contained in:
Cole Robinson 2013-11-09 18:56:09 -05:00
parent 8dcb65bd50
commit 8b42bca801
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ class Distro(object):
try:
initrd = self.fetcher.acquireFile(initrdpath)
return kernel, initrd, args
except:
finally:
os.unlink(kernel)