diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 83b43ff22..9607a5cb7 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -257,6 +257,7 @@ class Backend(object): return r.text else: self._log.debug(u'failed to fetch: {0} ({1})', url, r.status_code) + return None def fetch(self, artist, title): raise NotImplementedError() @@ -286,11 +287,11 @@ class MusiXmatch(Backend): html = self.fetch_url(url) if not html: - return + return None if "We detected that your IP is blocked" in html: self._log.warning(u'we are blocked at MusixMatch: url %s failed' % url) - return + return None html_parts = html.split('