mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +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):
|
||||
self.loop = loop
|
||||
else:
|
||||
loop = asyncio.get_event_loop()
|
||||
self.loop = asyncio.get_event_loop()
|
||||
|
||||
def __enter__(self):
|
||||
return self.start()
|
||||
|
|
|
|||
Loading…
Reference in a new issue