diff --git a/discord/http.py b/discord/http.py index 3fb13591a..d098a0a48 100644 --- a/discord/http.py +++ b/discord/http.py @@ -230,7 +230,8 @@ class HTTPClient: # state management async def close(self): - await self._session.close() + if self._session: + await self._session.close() def _token(self, token, *, bot=True): self.token = token