From c73ecb89d36087f84f6b05c5752d553aed6f9ff4 Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Tue, 28 Feb 2023 09:36:16 -0500 Subject: [PATCH] Update spotify.py --- beetsplug/spotify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 66b2b1084..af0d450e1 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -295,10 +295,11 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin): """ artist, artist_id = self.get_artist(track_data['artists']) + self._log.debug("Track Data is {}", track_data) # Get album information for spotify tracks try: album = track_data['album']['name'] - except KeyError: + except (KeyError, TypeError): album = None return TrackInfo( title=track_data['name'],