mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 04:22:40 +01:00
added error handling
This commit is contained in:
parent
0f1add8b02
commit
7a9d8f9752
1 changed files with 5 additions and 1 deletions
|
|
@ -956,7 +956,11 @@ class Spotify(RemoteArtSource):
|
|||
return HAS_BEAUTIFUL_SOUP
|
||||
|
||||
def get(self, album, plugin, paths):
|
||||
url = self.SPOTIFY_ALBUM_URL + album.items().get().spotify_album_id
|
||||
try:
|
||||
url = self.SPOTIFY_ALBUM_URL + album.items().get().spotify_album_id
|
||||
except AttributeError:
|
||||
self._log.debug('Fetchart: no Spotify album ID found')
|
||||
return
|
||||
try:
|
||||
response = requests.get(url)
|
||||
response.raise_for_status()
|
||||
|
|
|
|||
Loading…
Reference in a new issue