dont fail if files are already gone
This commit is contained in:
parent
e761ee692d
commit
2e3b61d163
1 changed files with 4 additions and 1 deletions
|
@ -300,7 +300,10 @@ class Edit(models.Model):
|
|||
folder = os.path.dirname(icon)
|
||||
ox.makedirs(folder)
|
||||
for f in glob("%s/icon*.jpg" % folder):
|
||||
os.unlink(f)
|
||||
try:
|
||||
os.unlink(f)
|
||||
except:
|
||||
pass
|
||||
cmd = [
|
||||
settings.LIST_ICON,
|
||||
'-f', ','.join(frames),
|
||||
|
|
Loading…
Reference in a new issue