From 9b5d78bad09c1e42bfa8f680b861a8c4e42f4caa Mon Sep 17 00:00:00 2001 From: Bruno Cauet Date: Mon, 23 Mar 2015 17:24:30 +0100 Subject: [PATCH] Fix album emptiness test in duplicates resolution Fix #1367. Tests are missing for I've not found yet a satisfying way to build them. --- beets/ui/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 4b1248add..73bcc7b0f 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -780,7 +780,7 @@ class TerminalImportSession(importer.ImportSession): # skip empty albums (coming from a previous failed import session) if task.is_album: - real_duplicates = filter(len, found_duplicates) + real_duplicates = [dup for dup in found_duplicates if dup.items()] if not real_duplicates: log.info("All duplicates are empty, we ignore them") task.should_remove_duplicates = True