[15:29:19] Future exception was never retrieved
future: <Future finished exception=ConnectionError('Connection to Telegram failed 1 time(s)')>
Traceback (most recent call last):
File "/Users/me/Desktop/project/file.py", line 72, in _connect
await client.connect()
File "/Users/me/Desktop/project/resources/venv/lib/python3.7/site-packages/telethon/client/telegrambaseclient.py", line 551, in connect
LAYER, self._init_request
ConnectionError: Connection to Telegram failed 1 time(s)
如何找到从未检索到异常的确切 Future 对象?我只能看到确切的异常和一些堆栈跟踪(从中我无法找到 Future 本身)。如果我能知道 Future 是在代码中定义的,那就太好了。
启用调试模式可以揭示 Future 的创建位置。https://docs.python.org/3.7/library/asyncio-dev.html#debug-mode https://docs.python.org/3.7/library/asyncio-dev.html#debug-mode
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)