Фикс
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "osuclient"
|
name = "osuclient"
|
||||||
version = "0.4.0"
|
version = "0.4.1"
|
||||||
description = "Client for osu! API"
|
description = "Client for osu! API"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [
|
authors = [
|
||||||
|
|||||||
@ -42,10 +42,10 @@ class osuAPIClient(AioHTTPXClient):
|
|||||||
return s.BeatmapExtended.model_validate(req.json())
|
return s.BeatmapExtended.model_validate(req.json())
|
||||||
|
|
||||||
case st.NOT_FOUND:
|
case st.NOT_FOUND:
|
||||||
return s.Error(404, 'Beatmap not found')
|
raise s.Error(404, 'Beatmap not found')
|
||||||
|
|
||||||
case _:
|
case _:
|
||||||
return s.Error(500, 'Internal Server Error')
|
raise s.Error(500, 'Internal Server Error')
|
||||||
|
|
||||||
async def get_user_scores(
|
async def get_user_scores(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user