mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #673] [CLOSED] retrieve proper message and reason when response can't be loaded to json #990
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#990
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/673
Author: @gustavokrieger
Created: 4/19/2021
Status: ❌ Closed
Base:
master← Head:non-json-response-proper-error-message📝 Commits (1)
4022b8dretrieve proper message and reason when response can't be loaded to json📊 Changes
1 file changed (+26 additions, -8 deletions)
View changed files
📝
spotipy/client.py(+26 -8)📄 Description
I couldn't reproduce the throwing of
BrokenPipeErrorreported in #633, but noticed that theSpotifyExceptionthat was being thrown instead hadNoneasreason. I then noticed that bothmsgandreasoncould possibly be retrieved from the response'sraw, so I created a method to do it (only if loading to json fails). I also extracted a method from the original code.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.