Похожие чаты

File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 422, in download_media return

await self._download_document(
File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 885, in _download_document
size = self._get_thumb(document.thumbs, thumb)
File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 762, in _get_thumb
thumbs = list(sorted(thumbs, key=sort_thumbs))
TypeError: 'NoneType' object is not iterable

await client.download_media(message,bytes,thumb=-1)

got this error for some messages
why it wont return None for messages without thumbnail?

8 ответов

7 просмотров

print and show the message when it happens

ㅤㅤㅤmek- Автор вопроса
⎞ .·. ⎝ ⎝
print and show the message when it happens

protected non thumb documents getting this issue

ㅤㅤㅤmek
protected non thumb documents getting this issue

nvm, it's solved https://t.me/TelethonUpdates/1377, will be on next release

ㅤㅤㅤmek- Автор вопроса
ㅤㅤㅤmek- Автор вопроса
⎞ .·. ⎝ ⎝
nvm, it's solved https://t.me/TelethonUpdates/1377...

got same issue in new version too(1.29.1) File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 422, in download_media return await self._download_document( File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 885, in _download_document size = None File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 762, in _get_thumb # Empty size or invalid should go last TypeError: 'NoneType' object is not iterable

ㅤㅤㅤmek
got same issue in new version too(1.29.1) File "...

your traceback looks high can you forward a file that fails, or print .stringify() it to pastebin.com, i don't think this is the same issue. it already returns if thumbs were None

this traceback looks weird

lonami
this traceback looks weird

btw, i can't seem to send galleries, _send_album can receive None reply_to there too

Похожие вопросы

Обсуждают сегодня

я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
Is it a good price to buy hex now on 0,0019?
Patrick
29
короче сгенерила мне эта штука код на ассемблере: struc string val { common local .value dq .value .value: if ~val eq db val end if db 0 } fo...
Vi Chapmann Chapmann
12
Ребят такой вопрос я хочу пранк сделать в колледже и убрать все права установить 000 рекурсивно у домашней директории юзера, установить переменную окружения PATH в "" и сделат...
Super Sigma
21
Всем привет! Массив вводится с клавиатуры, кол-во элементов неизвестно, поэтому я указал arr db 100 dup(?) С нахождением максимума проблем нет, а вот минимум почему-то всегд...
En Vind Av Sorg
11
Помогите, пожалуйста, делаю программу для для подсчёта корней квадратного уравнения, знаю, что есть куча недочётов, недоработок, но основная проблема в том, что почему-то при ...
NYC
13
Hey folks, If I buy XMR via p2p or atomic swaps, does that impact on its price? Or is that equivalent to transferring from one wallet to another with no impact on price?
𐌊aD𐌍€Z̷̷zꍏ☈ 𝟛
13
#include <stdio.h> int main(void) { int n; scanf("%d", &n); int digits1[n] = {0}; int digits2[n] = {0}; я не могу таким образом заранее массив нулями заполнить?
Linus
12
hi, just reinstalled komodo wallet, and can't find ARRR on there? tried to search ARRR and pirate and nothing came up... is arrr still supported on komodo wallet. it's been ...
Pilner
10
в сях есть множество как в питоне? для удаление дубликатов
Linus
25
Карта сайта