mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #674] [MERGED] Spurious warning message in auth manager initializers #993
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#993
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/674
Author: @Peter-Schorn
Created: 4/19/2021
Status: ✅ Merged
Merged: 4/19/2021
Merged by: @stephanebruckert
Base:
master← Head:master📝 Commits (1)
9ebb336Fixed a bug in the initializers for the auth managers that produced a spurious warning message if you provide a cache handler and you set a value for the "SPOTIPY_CLIENT_USERNAME" environment variable.📊 Changes
2 files changed (+4 additions, -4 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
spotipy/oauth2.py(+3 -4)📄 Description
If you have your username stored in the "SPOTIPY_CLIENT_USERNAME" environment variable and you create an auth manager and assign a cache handler to it like so (like you should):
Then you will get the following error message:
This error message should only appear if you pass the username directly to the initializer, not if you happen to have it stored in an environment variable.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.