mirror of
https://github.com/beetbox/beets.git
synced 2026-01-26 10:02:31 +01:00
lyrics: Avoid crash when enabling google
If you *both* haven't set an API key *and* BeautifulSoup wasn't installed, the list.remove() call would crash. (This came up when running the tests on a fresh machine without many dependencies.)
This commit is contained in:
parent
2228e0e8e1
commit
581fba6288
1 changed files with 1 additions and 1 deletions
|
|
@ -611,7 +611,7 @@ class LyricsPlugin(plugins.BeetsPlugin):
|
||||||
u'provide an API key in the configuration. '
|
u'provide an API key in the configuration. '
|
||||||
u'See the documentation for further details.')
|
u'See the documentation for further details.')
|
||||||
sources.remove('google')
|
sources.remove('google')
|
||||||
if not HAS_BEAUTIFUL_SOUP:
|
elif not HAS_BEAUTIFUL_SOUP:
|
||||||
self._log.warn(u'To use the google lyrics source, you must '
|
self._log.warn(u'To use the google lyrics source, you must '
|
||||||
u'install the beautifulsoup4 module. See the '
|
u'install the beautifulsoup4 module. See the '
|
||||||
u'documentation for further details.')
|
u'documentation for further details.')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue