mental32 / spotify.py

🌐 API wrapper for Spotify 🎶
https://spotifypy.readthedocs.io/en/latest/
MIT License
150 stars 38 forks source link

'Payload' referenced before assignment #41

Closed Skeletrox closed 4 years ago

Skeletrox commented 4 years ago

UnboundLocalError: local variable 'payload' referenced before assignment is thrown when attempting to get a track from ID.

Further research into the source code points the error at line 1597 in track, where if market is not defined the payload variable isn't created.

mental32 commented 4 years ago

@Skeletrox could you send the full traceback in a hastebin/pastebin post.

Also what version of spotify.py are you running.

Skeletrox commented 4 years ago

The pastebin URL is https://pastebin.com/XxTUwJPC.

The spotify version I use is 0.8.1 installed from PyPi through pip3 install -U spotify.

mental32 commented 4 years ago

Thanks for the traceback, I've fixed this but it's not on pypi right now, I'll be publishing changes there later.