From 5a9cc6a2d98c5599a539648d43c8d460046eda60 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 6 May 2012 21:19:13 -0700 Subject: [PATCH] fix crash on 0 chroma matches for singleton --- beetsplug/chroma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/chroma.py b/beetsplug/chroma.py index 325978241..dfd362fe4 100644 --- a/beetsplug/chroma.py +++ b/beetsplug/chroma.py @@ -138,7 +138,7 @@ class AcoustidPlugin(plugins.BeetsPlugin): def item_candidates(self, item): if item.path not in _matches: - return 0.0, 0.0 + return [] recording_id, _ = _matches[item.path] track = hooks._track_for_id(recording_id)