From c6473b66f1d57c1b4f040344b615535741bb122e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 28 Aug 2020 17:15:53 +0200 Subject: [PATCH] fix osu? --- pyproject.toml | 2 +- royalpack/stars/api_auth_login_osu.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 527dad7e..31840e0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "AGPL-3.0+" diff --git a/royalpack/stars/api_auth_login_osu.py b/royalpack/stars/api_auth_login_osu.py index 4d6d0594..3c1c248f 100644 --- a/royalpack/stars/api_auth_login_osu.py +++ b/royalpack/stars/api_auth_login_osu.py @@ -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: