mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
fix osu?
This commit is contained in:
parent
2dda1310b6
commit
c6473b66f1
2 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
[tool.poetry]
|
||||
name = "royalpack"
|
||||
version = "5.14.1"
|
||||
version = "5.14.2"
|
||||
description = "A Royalnet command pack for the Royal Games community"
|
||||
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
|
||||
license = "AGPL-3.0+"
|
||||
|
|
|
@ -65,7 +65,8 @@ class ApiAuthLoginOsuStar(rca.ApiStar):
|
|||
client_secret=self.client_secret,
|
||||
redirect_uri=f"{self.base_url}{self.path}",
|
||||
refresh_code=code)
|
||||
except aiohttp.client_exceptions.ClientResponseError:
|
||||
except aiohttp.client_exceptions.ClientResponseError as e:
|
||||
ru.sentry_exc(e)
|
||||
raise rca.ForbiddenError("osu! API returned an error in the OAuth token exchange")
|
||||
|
||||
async with aiohttp.ClientSession(headers={"Authorization": f"Bearer {t['access_token']}"}) as session:
|
||||
|
|
Loading…
Reference in a new issue