From 88f6bbb7db3b438ada19dfb79315c40917e1a9ae Mon Sep 17 00:00:00 2001 From: Miwory Date: Sun, 8 Mar 2026 17:55:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D1=82=D1=83=D1=81=20=D0=BA=D0=BE=D0=B4=D0=B0=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D0=BE=D1=82=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- src/oxidespotify/api.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a09ff5f..d4dafe6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "oxidespotify" -version = "0.2.0" +version = "0.2.1" description = "Client for Spotify API" readme = "README.md" authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }] diff --git a/src/oxidespotify/api.py b/src/oxidespotify/api.py index e32d823..352c04f 100644 --- a/src/oxidespotify/api.py +++ b/src/oxidespotify/api.py @@ -36,7 +36,9 @@ class SpotifyAPIClient(OxideHTTP): async def _process[T: BaseModel]( self, req: Response | CachedResponse, schema: type[T] | None ) -> T | None: - if req.status_code == 204: + if req.status_code == 204 or ( + req.status_code == 200 and schema is None + ): return None if req.status_code >= 500: