From a998d36380d2ed080b55da3ce304114474e1bf11 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Fri, 6 Jan 2012 09:54:57 -0800 Subject: [PATCH] fix deletion in partial matches --- beets/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/importer.py b/beets/importer.py index ad6da8a42..d929321c0 100644 --- a/beets/importer.py +++ b/beets/importer.py @@ -704,7 +704,7 @@ def finalize(config): task.save_history() continue - items = task.items if task.is_album else [task.item] + items = [i for i in task.items if i] if task.is_album else [task.item] # Announce that we've added an album. if task.is_album: