Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NoneType' object has no attribute 'connect' #4493

Open
3 tasks done
Smawexi opened this issue Oct 20, 2024 · 0 comments
Open
3 tasks done

'NoneType' object has no attribute 'connect' #4493

Smawexi opened this issue Oct 20, 2024 · 0 comments

Comments

@Smawexi
Copy link

Smawexi commented Oct 20, 2024

Code that causes the issue

empty

Expected behavior

empty

Actual behavior

reconnect error

Traceback

Unexpected exception reconnecting on attempt 6
Traceback (most recent call last):
File "D:\miniconda\lib\site-packages\telethon\network\mtprotosender.py", line 378, in _reconnect
await self._connect()
File "D:\miniconda\lib\site-packages\telethon\network\mtprotosender.py", line 234, in _connect
connected = await self._try_connect(attempt)
File "D:\miniconda\lib\site-packages\telethon\network\mtprotosender.py", line 284, in _try_connect
await self._connection.connect(timeout=self._connect_timeout)
AttributeError: 'NoneType' object has no attribute 'connect'

Telethon version

1.37

Python version

3.9

Operating system (including distribution name and version)

Windows10

Other details

No response

Checklist

  • The error is in the library's code, and not in my own.
  • I have searched for this issue before posting it and there isn't an open duplicate.
  • I ran pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip and triggered the bug in the latest version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant