mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 18:32:12 +02:00
hob: correctly handle an exception
It doesn't matter if we can't remove the temprorary file, for some reason, so catch the exception and ignore it. Partially addresses [YOCTO #1468] (Bitbake rev: 4394e38b038e1bc9845adf01d73363157d98c96d) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
58570ec6a5
commit
684a7c655b
@@ -495,7 +495,11 @@ class MainWindow (gtk.Window):
|
||||
self.back.set_sensitive(True)
|
||||
self.cancel.set_sensitive(False)
|
||||
for f in self.files_to_clean:
|
||||
os.remove(f)
|
||||
try:
|
||||
os.remove(f)
|
||||
except OSError:
|
||||
pass
|
||||
self.files_to_clean.remove(f)
|
||||
self.files_to_clean = []
|
||||
|
||||
lbl = "<b>Build completed</b>\n\nClick 'Edit Image' to start another build or 'View Messages' to view the messages output during the build."
|
||||
|
||||
Reference in New Issue
Block a user