Skip to content

Commit

Permalink
Update translator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kingosticks authored Dec 20, 2023
1 parent 2007771 commit c49ea3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mopidy_spotify/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def to_playlist(
if ref is None or as_ref:
return ref

web_tracks = web_playlist.get("tracks", {}).get("items", [])
web_tracks = web_playlist.get("tracks", {}).get("items") or []
if as_items and not isinstance(web_tracks, list):
return

Expand Down

0 comments on commit c49ea3a

Please sign in to comment.