From: kaliko Date: Tue, 15 Dec 2020 12:24:30 +0000 (+0100) Subject: Do no control empty filter X-Git-Tag: 0.16.0~8 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=45a6d5d8e466f8c82e3d85c3442c7e437a449b6e;p=mpd-sima.git Do no control empty filter --- 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'])