Fix HTTPClient.recreate to actually work.
Forgot a keyword argument.
This commit is contained in:
parent
e19244b041
commit
4d375fc856
@ -161,7 +161,7 @@ class HTTPClient:
|
|||||||
yield from self.session.close()
|
yield from self.session.close()
|
||||||
|
|
||||||
def recreate(self):
|
def recreate(self):
|
||||||
self.session = aiohttp.ClientSession(self.connector, loop=self.loop)
|
self.session = aiohttp.ClientSession(connector=self.connector, loop=self.loop)
|
||||||
|
|
||||||
def _token(self, token, *, bot=True):
|
def _token(self, token, *, bot=True):
|
||||||
self.token = token
|
self.token = token
|
||||||
|
Loading…
x
Reference in New Issue
Block a user