Return MBID None for 'Track not found'
This commit is contained in:
parent
58fa3094d8
commit
8d784d6417
|
@ -1592,7 +1592,10 @@ class _Opus(_BaseObject, _Taggable):
|
||||||
def get_mbid(self):
|
def get_mbid(self):
|
||||||
"""Returns the MusicBrainz ID of the album or track."""
|
"""Returns the MusicBrainz ID of the album or track."""
|
||||||
|
|
||||||
|
try:
|
||||||
doc = self._request(self.ws_prefix + ".getInfo", cacheable=True)
|
doc = self._request(self.ws_prefix + ".getInfo", cacheable=True)
|
||||||
|
except WSError:
|
||||||
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
lfm = doc.getElementsByTagName("lfm")[0]
|
lfm = doc.getElementsByTagName("lfm")[0]
|
||||||
|
|
Loading…
Reference in a new issue