mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Absubmit close temporary file
Fix error when deleting the file under Windows
This commit is contained in:
parent
0975ee709b
commit
a5aee3f677
1 changed files with 1 additions and 0 deletions
|
|
@ -131,6 +131,7 @@ class AcousticBrainzSubmitPlugin(plugins.BeetsPlugin):
|
|||
tmp_file, filename = tempfile.mkstemp(suffix='.json')
|
||||
try:
|
||||
# Close the file, so the extractor can overwrite it.
|
||||
os.close(tmp_file)
|
||||
try:
|
||||
call([self.extractor, util.syspath(item.path), filename])
|
||||
except ABSubmitError as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue