From 45a6d5d8e466f8c82e3d85c3442c7e437a449b6e Mon Sep 17 00:00:00 2001 From: kaliko Date: Tue, 15 Dec 2020 13:24:30 +0100 Subject: [PATCH] Do no control empty filter --- sima/plugins/internal/tags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sima/plugins/internal/tags.py b/sima/plugins/internal/tags.py index e12f2c4..6a2acf7 100644 --- a/sima/plugins/internal/tags.py +++ b/sima/plugins/internal/tags.py @@ -104,7 +104,8 @@ class Tags(Plugin): raise PluginException('MPD >= 0.21 required') # Check filter is valid try: - self.player.find(self.plugin_conf['filter']) + if self.plugin_conf['filter']: + self.player.find(self.plugin_conf['filter']) except CommandError: raise PluginException('Badly formated filter in tags plugin configuration: "%s"' % self.plugin_conf['filter']) -- 2.39.5