From 4038f191da3d62f603aca8f12b5949d6e16c10ed Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 8 Aug 2015 11:23:55 -0700 Subject: [PATCH] Fix #1564 (regression from #1559) --- beetsplug/lastgenre/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index db2d8a517a..eab6ab4408 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -411,7 +411,7 @@ def _tags_for(self, obj, min_weight=None): # Filter by weight (optionally). if min_weight: - res = [el for el in res if (int(el.weight) or 0) >= min_weight] + res = [el for el in res if (int(el.weight or 0)) >= min_weight] # Get strings from tags. res = [el.item.get_name().lower() for el in res]