Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2019-09-22 13:36:46,121 - telethon.client.uploads - INFO - Uploading file of 1459 bytes in 1 chunks of 131072
- 2019-09-22 13:36:46,122 - telethon.client.updates - ERROR - Unhandled exception on wrapper
- Traceback (most recent call last):
- File "/root/Telegram-UserBot/userbot/events.py", line 77, in wrapper
- await func(check)
- File "/root/Telegram-UserBot/userbot/modules/misc.py", line 57, in killdabot
- await event.client.disconnect()
- File "/usr/local/lib/python3.6/site-packages/telethon/client/telegrambaseclient.py", line 478, in _disconnect_coro
- await asyncio.wait(self._updates_queue, loop=self._loop)
- File "/usr/local/lib/python3.6/asyncio/tasks.py", line 313, in wait
- return (yield from _wait(fs, timeout, return_when, loop))
- File "/usr/local/lib/python3.6/asyncio/tasks.py", line 396, in _wait
- yield from waiter
- concurrent.futures._base.CancelledError
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.6/site-packages/telethon/client/updates.py", line 422, in _dispatch_update
- await callback(event)
- File "/root/Telegram-UserBot/userbot/events.py", line 135, in wrapper
- caption=text,
- File "/usr/local/lib/python3.6/site-packages/telethon/client/uploads.py", line 338, in send_file
- supports_streaming=supports_streaming
- File "/usr/local/lib/python3.6/site-packages/telethon/client/uploads.py", line 643, in _file_to_media
- use_cache=use_cache if allow_cache else None
- File "/usr/local/lib/python3.6/site-packages/telethon/client/uploads.py", line 580, in upload_file
- result = await self(request)
- File "/usr/local/lib/python3.6/site-packages/telethon/client/users.py", line 53, in __call__
- future = self._sender.send(request, ordered=ordered)
- File "/usr/local/lib/python3.6/site-packages/telethon/network/mtprotosender.py", line 162, in send
- raise ConnectionError('Cannot send requests while disconnected')
- ConnectionError: Cannot send requests while disconnected
- 2019-09-22 13:36:46,138 - telethon.network.mtprotosender - INFO - Not disconnecting (already have no connection)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement