mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 15:14:52 +00:00
Fix 'Client' object has no attribute 'loop'
Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
parent
3d71eba4e1
commit
3aed1857d4
1 changed files with 1 additions and 1 deletions
|
|
@ -380,7 +380,7 @@ class Client(Methods):
|
||||||
if isinstance(loop, asyncio.AbstractEventLoop):
|
if isinstance(loop, asyncio.AbstractEventLoop):
|
||||||
self.loop = loop
|
self.loop = loop
|
||||||
else:
|
else:
|
||||||
loop = asyncio.get_event_loop()
|
self.loop = asyncio.get_event_loop()
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
return self.start()
|
return self.start()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue