diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 530bd4f67..28949b307 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -296,6 +296,9 @@ def scrape_lyrics_from_url(url): """ from bs4 import BeautifulSoup, Tag, Comment html = fetch_url(url) + if not html: + return None + soup = BeautifulSoup(html) for tag in soup.findAll('br'):