Добавлено более подробное описание ошибки
All checks were successful
Verify Dev Build / publish (push) Successful in 33s

This commit is contained in:
2026-03-08 21:48:27 +03:00
parent 88f6bbb7db
commit 7e4807f95a
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "oxidespotify"
version = "0.2.1"
version = "0.2.2"
description = "Client for Spotify API"
readme = "README.md"
authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }]

View File

@ -41,7 +41,8 @@ class SpotifyAuthClient(OxideHTTP):
data = await req.json()
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)