Add missing return self on action/download ctx managers

This commit is contained in:
Lonami Exo 2019-07-13 21:20:51 +02:00
parent ae1c1b3912
commit 944fb10733
2 changed files with 2 additions and 1 deletions

View File

@ -61,6 +61,7 @@ class _ChatAction:
self._running = True
self._task = self._client.loop.create_task(self._update())
return self
async def __aexit__(self, *args):
self._running = False

View File

@ -92,7 +92,7 @@ class _DirectDownloadIter(RequestIter):
self._sender = None
async def __aenter__(self):
pass
return self
async def __aexit__(self, *args):
await self.close()