diff --git a/beetsplug/absubmit.py b/beetsplug/absubmit.py index 95f3342ac..646f0fb84 100644 --- a/beetsplug/absubmit.py +++ b/beetsplug/absubmit.py @@ -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: