mirror of
https://github.com/beetbox/beets.git
synced 2026-01-27 02:23:36 +01:00
Handle potential OSError when unlinking temporary files in ArtResizer
This commit is contained in:
parent
731519b0a3
commit
1b94baca63
1 changed files with 4 additions and 1 deletions
|
|
@ -655,7 +655,10 @@ class ArtResizer(metaclass=Shareable):
|
|||
)
|
||||
finally:
|
||||
if result_path != path_in:
|
||||
os.unlink(path_in)
|
||||
try:
|
||||
os.unlink(path_in)
|
||||
except OSError:
|
||||
pass
|
||||
return result_path
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Reference in a new issue