Merge pull request #480 from fortes/patch-1

Don't try to parse None as HTML when fetching lyrics
This commit is contained in:
Adrian Sampson 2013-12-18 12:04:45 -08:00
commit 5e405f6b84

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