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,