From a3d8105a5a6153b25d2de2c39adf4d39bdb559ee Mon Sep 17 00:00:00 2001 From: Lucas Duailibe Date: Sat, 9 Mar 2013 20:04:26 -0300 Subject: [PATCH] small fix --- beetsplug/convert.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beetsplug/convert.py b/beetsplug/convert.py index 3ed4aa726..111debeeb 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -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)