[PR #543] [MERGED] Give a reason for player errors in SpotifyException #933

Closed
opened 2026-02-28 00:02:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/543
Author: @Esamanoaz
Created: 7/17/2020
Status: Merged
Merged: 7/23/2020
Merged by: @stephanebruckert

Base: masterHead: master


📝 Commits (4)

  • 99abb23 Added reason to SpotifyException
  • 40db9f2 Updated the changelog
  • c952f16 Fixing code style
  • 576e765 Merge branch 'master' into master

📊 Changes

3 files changed (+10 additions, -3 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 spotipy/client.py (+5 -0)
📝 spotipy/exceptions.py (+4 -3)

📄 Description

I added a reason for player errors returned by Spotify. The list of reasons can be viewed here: list. This change to SpotifyException will speed up the development process by giving more specific error descriptions to developers.

An example of how this could be used:
https://pastebin.com/hLMtjMBj


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/543 **Author:** [@Esamanoaz](https://github.com/Esamanoaz) **Created:** 7/17/2020 **Status:** ✅ Merged **Merged:** 7/23/2020 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`99abb23`](https://github.com/spotipy-dev/spotipy/commit/99abb2340e3b7bae152e70bc899e0e060e5aa192) Added reason to SpotifyException - [`40db9f2`](https://github.com/spotipy-dev/spotipy/commit/40db9f231492fb474911aaee6d7e916a662c2675) Updated the changelog - [`c952f16`](https://github.com/spotipy-dev/spotipy/commit/c952f16a772609f70c73240588ec6f607ebd0bcc) Fixing code style - [`576e765`](https://github.com/spotipy-dev/spotipy/commit/576e76593833af9ea0b85b33c4b539ef6d6b5312) Merge branch 'master' into master ### 📊 Changes **3 files changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `spotipy/client.py` (+5 -0) 📝 `spotipy/exceptions.py` (+4 -3) </details> ### 📄 Description I added a reason for player errors returned by Spotify. The list of reasons can be viewed here: [list](https://developer.spotify.com/documentation/web-api/reference/object-model/#player-error-reasons). This change to SpotifyException will speed up the development process by giving more specific error descriptions to developers. An example of how this could be used: https://pastebin.com/hLMtjMBj --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:02:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#933
No description provided.