Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unhandled exception during asyncio.run() shutdown
- task: <Task finished name='Task-91' coro=<Client.updates_watchdog() done, defined at C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\site-packages\pyrogram\client.py:319> exception=RuntimeError("Task <Task pending name='Task-92' coro=<Event.wait() running at C:\\Users\\test2\\AppData\\Local\\Programs\\Python\\Python38\\lib\\asyncio\\locks.py:309> cb=[_release_waiter(<Future pendi...00578D2E0>()]>)() at C:\\Users\\test2\\AppData\\Local\\Programs\\Python\\Python38\\lib\\asyncio\\tasks.py:429]> got Future <Future pending> attached to a different loop")>
- Traceback (most recent call last):
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\asyncio\runners.py", line 44, in run
- return loop.run_until_complete(main)
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 616, in run_until_complete
- return future.result()
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\2.py", line 36, in main
- await asyncio.gather(app1.idle(), app2.idle())
- AttributeError: 'Client' object has no attribute 'idle'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\asyncio\tasks.py", line 481, in wait_for
- await waiter
- asyncio.exceptions.CancelledError
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\site-packages\pyrogram\client.py", line 322, in updates_watchdog
- await asyncio.wait_for(self.updates_watchdog_event.wait(), self.UPDATES_WATCHDOG_INTERVAL)
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\asyncio\tasks.py", line 484, in wait_for
- return fut.result()
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\asyncio\locks.py", line 309, in wait
- await fut
- RuntimeError: Task <Task pending name='Task-92' coro=<Event.wait() running at C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\asyncio\locks.py:309> cb=[_release_waiter(<Future pendi...00578D2E0>()]>)() at C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\asyncio\tasks.py:429]> got Future <Future pending> attached to a different loop
- Traceback (most recent call last):
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\2.py", line 39, in <module>
- asyncio.run(main())
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\asyncio\runners.py", line 44, in run
- return loop.run_until_complete(main)
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 616, in run_until_complete
- return future.result()
- File "C:\Users\test2\AppData\Local\Programs\Python\Python38\2.py", line 36, in main
- await asyncio.gather(app1.idle(), app2.idle())
- AttributeError: 'Client' object has no attribute 'idle'
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement