From 7e4807f95a767e9e10da85db1468011fc1078da2 Mon Sep 17 00:00:00 2001 From: Miwory Date: Sun, 8 Mar 2026 21:48:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B1=D0=BE=D0=BB=D0=B5=D0=B5=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=B4=D1=80=D0=BE=D0=B1=D0=BD=D0=BE=D0=B5=20=D0=BE=D0=BF=D0=B8?= =?UTF-8?q?=D1=81=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- src/oxidespotify/auth.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d4dafe6..9d68dca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" }] diff --git a/src/oxidespotify/auth.py b/src/oxidespotify/auth.py index 452904f..6a3d6ef 100644 --- a/src/oxidespotify/auth.py +++ b/src/oxidespotify/auth.py @@ -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)