From a23857fc64b6bfaa228a588c74b4718aea1966cd Mon Sep 17 00:00:00 2001 From: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com> Date: Tue, 28 Sep 2021 00:31:42 +0200 Subject: [PATCH] lyrics: fix crash when beautifulsoup4 is not installed Fixes #4027 --- beetsplug/lyrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 93c31d938..2f317bdf5 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -760,7 +760,7 @@ class LyricsPlugin(plugins.BeetsPlugin): def sanitize_bs_sources(self, sources): enabled_sources = [] for source in sources: - if source.REQUIRES_BS: + if self.SOURCE_BACKENDS[source].REQUIRES_BS: self._log.debug(u'To use the %s lyrics source, you must ' u'install the beautifulsoup4 module. See ' u'the documentation for further details.'