diff --git a/addon_service/common/network.py b/addon_service/common/network.py index 0e8d5f21..1e923a60 100644 --- a/addon_service/common/network.py +++ b/addon_service/common/network.py @@ -83,9 +83,7 @@ async def _do_send(self, request: HttpRequestInfo): async with self._try_send(request) as _response: yield _response except exceptions.ExpiredAccessToken: - await _PrivateNetworkInfo.get( - self - ).account.refresh_oauth_access_token__async() + await _PrivateNetworkInfo.get(self).account.refresh_oauth2_access_token() # if this one fails, don't try refreshing again async with self._try_send(request) as _response: yield _response