From 27075ea03798ed9b758fffe2cdec5eb0fe79b426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Thomas?= Date: Sat, 15 Aug 2015 14:37:54 +0200 Subject: [PATCH] badfiles: Fixed weird use of sum --- beetsplug/badfiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/badfiles.py b/beetsplug/badfiles.py index e072d82a3..a26c04f4d 100644 --- a/beetsplug/badfiles.py +++ b/beetsplug/badfiles.py @@ -49,7 +49,7 @@ class BadFiles(BeetsPlugin): errors, output = self.run_command(["mp3val", path]) if errors == 0: output = [line for line in output if line.startswith("WARNING:")] - errors = sum(1 for line in output if line.startswith("WARNING:")) + errors = len(output) return errors, output def check_flac(self, path):