From d901516ec95eaac9137922678206fdb4fc21a489 Mon Sep 17 00:00:00 2001 From: Miwory Date: Wed, 26 Nov 2025 12:49:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- src/osuclient/api.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f5729ba..a398863 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "osuclient" -version = "0.4.0" +version = "0.4.1" description = "Client for osu! API" readme = "README.md" authors = [ diff --git a/src/osuclient/api.py b/src/osuclient/api.py index f59f7ec..ee885a2 100644 --- a/src/osuclient/api.py +++ b/src/osuclient/api.py @@ -42,10 +42,10 @@ class osuAPIClient(AioHTTPXClient): return s.BeatmapExtended.model_validate(req.json()) case st.NOT_FOUND: - return s.Error(404, 'Beatmap not found') + raise s.Error(404, 'Beatmap not found') case _: - return s.Error(500, 'Internal Server Error') + raise s.Error(500, 'Internal Server Error') async def get_user_scores( self,