Browse Source

Prevent AttributeError when closing HTTPClient early.

pull/1959/head
Rapptz 6 years ago
parent
commit
df130e10f0
  1. 1
      discord/http.py

1
discord/http.py

@ -230,6 +230,7 @@ class HTTPClient:
# state management # state management
async def close(self): async def close(self):
if self._session:
await self._session.close() await self._session.close()
def _token(self, token, *, bot=True): def _token(self, token, *, bot=True):

Loading…
Cancel
Save