mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[PR #557] [CLOSED] Fix JSONDecodeError on reading cache if you somehow have empty cache #937
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#937
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spotipy-dev/spotipy/pull/557
Author: @Callahan633
Created: 8/17/2020
Status: ❌ Closed
Base:
master← Head:oauth_json_decode_bug📝 Commits (2)
1de2786Fix JSONDecodeError on reading cache if you somehow have empty cache filea9dbdc2Removed unnecessary assignment to make tests pass successfully📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
spotipy/oauth2.py(+2 -1)📄 Description
I added a check to see if the cache file is an empty string, as this could result in an error in
json.loads(token_info_string)on line 287Related open issue is #493
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.