Last.fm now even skips an empty <content/> when no bio

This commit is contained in:
Hugo van Kemenade 2021-08-02 20:46:56 +03:00
parent c8a64dbee9
commit 72491f7a99

View file

@ -1798,9 +1798,14 @@ class Artist(_Taggable):
else:
params = None
return self._extract_cdata_from_request(
self.ws_prefix + ".getInfo", section, params
)
try:
bio = self._extract_cdata_from_request(
self.ws_prefix + ".getInfo", section, params
)
except IndexError:
bio = None
return bio
def get_bio_published_date(self):
"""Returns the date on which the artist's biography was published."""