is no current event loop in thread 'ThreadPoolExecutor-0_0'.
Why do I get such exection when I don't use Teleton's async mode?
I had created and set an event loop by asyncio in each thread, but after some time I was facing the following error:
=====
RunTimeError: Event loop is closed
RunTimeError: coroutine ignored GeneratorExit
Task was destroyed but it is pending!
Unexpected exception in the send loop
Traceback (most recent call last):
Generator Exit
During handling of the above exception, another exception occurred:
raise RunTimeError('Event loop is closed')
=====
Telethon sync is just an hack to use it from a non async way, afaik. Telethon is still an asyncio library thus using asyncio
what site was that again
carbon.now.sh
thanks man
Обсуждают сегодня