small fix

This commit is contained in:
Lucas Duailibe 2013-03-09 20:04:26 -03:00
parent 27b1d6d7cc
commit a3d8105a5a

View file

@ -199,6 +199,7 @@ class ConvertPlugin(BeetsPlugin):
@ConvertPlugin.listen('import_task_files')
def _cleanup(task, session):
for path in task.old_paths:
if path in _convert_tmp and os.path.isfile(path):
util.remove(path)
if path in _convert_tmp:
if os.path.isfile(path):
util.remove(path)
_convert_tmp.remove(path)