mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #608] [MERGED] Suppress warnings when cache path does not exist. #959
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#959
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/608
Author: @Peter-Schorn
Created: 11/11/2020
Status: ✅ Merged
Merged: 11/11/2020
Merged by: @stephanebruckert
Base:
master← Head:master📝 Commits (6)
6faf49cAdded an exception clause that catchesFileNotFoundErrorand logs a debug message inSpotifyOAuth.get_cached_token,SpotifyPKCE.get_cached_tokenandSpotifyImplicitGrant.get_cached_token.8ae2cddChanged docs forauthparameter ofSpotify.inittoaccess tokeninstead ofauthorization token. In issue #599, a user confused the access token with the authorization code.957a26aUpdated CHANGELOG.md04b2b02RemovedFileNotFoundErrorbecause it does not exist in python 2.7 (sigh) and replaced it with a call toos.path.exists.77a16dcReplacedos.path.existswitherror.errno == errno.ENOENTto supress errors when the cache file does not exist.caaabd5Merge branch 'master' into master📊 Changes
3 files changed (+20 additions, -10 deletions)
View changed files
📝
CHANGELOG.md(+3 -0)📝
spotipy/client.py(+1 -1)📝
spotipy/oauth2.py(+16 -9)📄 Description
See issue #605
I also changed the docs for
authparameter ofSpotify.initto "access token" instead of "authorization token". In issue #599, a user confused the access token with the authorization code.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.