[PR #158] [MERGED] Fixes error when scope is not set #799

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

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/158
Author: @josduj
Created: 1/18/2017
Status: Merged
Merged: 1/18/2017
Merged by: @plamere

Base: masterHead: master


📝 Commits (1)

  • 4f15a6f Fixes error when scope is not set

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 spotipy/oauth2.py (+4 -2)

📄 Description

If scope is set to None spotipy throws this error:

  File "/home/josduj/.local/lib/python2.7/site-packages/spotipy/oauth2.py", line 157, in _is_scope_subset
    needle_scope = set(needle_scope.split())
AttributeError: 'NoneType' object has no attribute 'split'

🔄 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/158 **Author:** [@josduj](https://github.com/josduj) **Created:** 1/18/2017 **Status:** ✅ Merged **Merged:** 1/18/2017 **Merged by:** [@plamere](https://github.com/plamere) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`4f15a6f`](https://github.com/spotipy-dev/spotipy/commit/4f15a6f07ef3abad386eb81db09c539e25011b70) Fixes error when scope is not set ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `spotipy/oauth2.py` (+4 -2) </details> ### 📄 Description If scope is set to `None` spotipy throws this error: ``` File "/home/josduj/.local/lib/python2.7/site-packages/spotipy/oauth2.py", line 157, in _is_scope_subset needle_scope = set(needle_scope.split()) AttributeError: 'NoneType' object has no attribute 'split' ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:01:47 +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#799
No description provided.