urlfetcher: Fix breakage after kernel err report fix

This commit is contained in:
Cole Robinson 2013-11-10 11:35:22 -05:00
parent bd782d5757
commit 1ffcc0cced
1 changed files with 2 additions and 1 deletions

View File

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