[PR #501] [MERGED] Refactor SpotifyOauthError class #918

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

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/501
Author: @ysinjab
Created: 5/27/2020
Status: Merged
Merged: 5/29/2020
Merged by: @stephanebruckert

Base: masterHead: add-error-details-to-spotify-auth-error-class


📝 Commits (3)

📊 Changes

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

View changed files

📝 CHANGELOG.md (+7 -0)
📝 spotipy/oauth2.py (+16 -3)
📝 tests/unit/test_oauth.py (+7 -0)

📄 Description

  • add error and error description to SpotifyOauthError to reflect the data returned by web api when error happens
  • unit test to SpotifyClientCredentials.get_access_token is added for invalid client

🔄 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/501 **Author:** [@ysinjab](https://github.com/ysinjab) **Created:** 5/27/2020 **Status:** ✅ Merged **Merged:** 5/29/2020 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `master` ← **Head:** `add-error-details-to-spotify-auth-error-class` --- ### 📝 Commits (3) - [`901b203`](https://github.com/spotipy-dev/spotipy/commit/901b2031a24ca30e064b7aba11ee60a73cb40576) Refactor SpotifyOauthError class - [`7da89b3`](https://github.com/spotipy-dev/spotipy/commit/7da89b3137acc08e042559c7465ddee1933f1c39) Fix class initialization - [`99f636d`](https://github.com/spotipy-dev/spotipy/commit/99f636d6e7ac8fe8531797a0d9ca4a11cf612dea) Add changelog ### 📊 Changes **3 files changed** (+30 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -0) 📝 `spotipy/oauth2.py` (+16 -3) 📝 `tests/unit/test_oauth.py` (+7 -0) </details> ### 📄 Description - add error and error description to SpotifyOauthError to reflect the data returned by web api when error happens - unit test to SpotifyClientCredentials.get_access_token is added for invalid client --- <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:37 +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#918
No description provided.