]> kaliko git repositories - mpd-sima.git/commitdiff
Do no control empty filter
authorkaliko <kaliko@azylum.org>
Tue, 15 Dec 2020 12:24:30 +0000 (13:24 +0100)
committerkaliko <kaliko@azylum.org>
Tue, 15 Dec 2020 12:24:30 +0000 (13:24 +0100)
sima/plugins/internal/tags.py

index e12f2c4447d61542804dafe07b30ee13ccbb36f4..6a2acf74c010d6cc5103f526bc55709268e90ff7 100644 (file)
@@ -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'])