diff --git a/egi_notebooks_hub/egiauthenticator.py b/egi_notebooks_hub/egiauthenticator.py index 2c572ab..1736574 100644 --- a/egi_notebooks_hub/egiauthenticator.py +++ b/egi_notebooks_hub/egiauthenticator.py @@ -268,7 +268,7 @@ async def refresh_user(self, user, handler=None): body=body, ) try: - resp = http_client.fetch(req) + resp = await http_client.fetch(req) except HTTPClientError as e: self.log.warning("Unable to refresh token, maybe expired: %s", e) return False