Closed jodal closed 4 years ago
I don't see how this happens so I am a bit stuck to test it.
Refresh has worked before and after, so it must have been a glitch from the Spotify API. I guess this change should be enough to guard against it:
diff --git a/mopidy_spotify/translator.py b/mopidy_spotify/translator.py
index 5ff7d28..c7d3ea8 100644
--- a/mopidy_spotify/translator.py
+++ b/mopidy_spotify/translator.py
@@ -169,7 +169,7 @@ def to_track_ref(sp_track):
def valid_web_data(data, object_type):
- return data.get("type") == object_type and "uri" in data
+ return data and data.get("type") == object_type and "uri" in data
def to_track_refs(sp_tracks, timeout=None):
Running Mopidy-Spotify 4.0.0a3. Happened during Mopidy startup.