Last.fm now even skips an empty <content/> when no bio
This commit is contained in:
parent
c8a64dbee9
commit
72491f7a99
|
@ -1798,9 +1798,14 @@ class Artist(_Taggable):
|
||||||
else:
|
else:
|
||||||
params = None
|
params = None
|
||||||
|
|
||||||
return self._extract_cdata_from_request(
|
try:
|
||||||
self.ws_prefix + ".getInfo", section, params
|
bio = self._extract_cdata_from_request(
|
||||||
)
|
self.ws_prefix + ".getInfo", section, params
|
||||||
|
)
|
||||||
|
except IndexError:
|
||||||
|
bio = None
|
||||||
|
|
||||||
|
return bio
|
||||||
|
|
||||||
def get_bio_published_date(self):
|
def get_bio_published_date(self):
|
||||||
"""Returns the date on which the artist's biography was published."""
|
"""Returns the date on which the artist's biography was published."""
|
||||||
|
|
Loading…
Reference in a new issue