Don't try to parse None as HTML when fetching lyrics

Fixes #479
This commit is contained in:
Filipe Fortes 2013-12-18 07:37:01 -08:00
parent 3338ef2ff2
commit 0824ccb85f

View file

@ -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'):