Compare commits

...

1 Commits

Author SHA1 Message Date
7e4807f95a Добавлено более подробное описание ошибки
All checks were successful
Verify Dev Build / publish (push) Successful in 33s
2026-03-08 21:48:27 +03:00
2 changed files with 3 additions and 2 deletions

View File

@ -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" }]

View File

@ -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)