From e85fe2d834d2bbbe18ccfeafcb211b6cf9d8fea0 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 29 Apr 2012 18:20:37 -0700 Subject: [PATCH] fix memoization presence check --- beets/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/library.py b/beets/library.py index a59e412b0..6c58356cc 100644 --- a/beets/library.py +++ b/beets/library.py @@ -1450,7 +1450,7 @@ class DefaultTemplateFunctions(object): return None memokey = ('aunique', keys, disam, self.item.album_id) memoval = self.lib._memotable.get(memokey) - if memoval: + if memoval is not None: return memoval keys = keys or 'albumartist album'