Compare commits
2 Commits
de37fcb5fa
...
latest
| Author | SHA1 | Date | |
|---|---|---|---|
| 3d1cf6bb4d | |||
| 7e4807f95a |
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "oxidespotify"
|
name = "oxidespotify"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
description = "Client for Spotify API"
|
description = "Client for Spotify API"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }]
|
authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }]
|
||||||
|
|||||||
@ -41,7 +41,8 @@ class SpotifyAuthClient(OxideHTTP):
|
|||||||
|
|
||||||
data = await req.json()
|
data = await req.json()
|
||||||
if req.status_code >= 400:
|
if req.status_code >= 400:
|
||||||
raise s.ClientError(req.status_code, data['error'])
|
err = f'{data["error"]}: {data["error_description"]}'
|
||||||
|
raise s.ClientError(req.status_code, err)
|
||||||
|
|
||||||
return schema.model_validate(data)
|
return schema.model_validate(data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user