Compare commits
5 Commits
47a98ba81b
...
78ce8aabea
Author | SHA1 | Date |
---|---|---|
xz-dev | 78ce8aabea | |
xz-dev | fe2d21ebce | |
xz-dev | b468f54b39 | |
xz-dev | 74cff4e863 | |
xz-dev | 7769679ac3 |
|
@ -81,7 +81,11 @@ async def reupload_pack(client: TelegramClient, pack: StickerSetFull, output_dir
|
||||||
reuploaded_documents[document.id] = already_uploaded[document.id]
|
reuploaded_documents[document.id] = already_uploaded[document.id]
|
||||||
print(f"Skipped reuploading {document.id}")
|
print(f"Skipped reuploading {document.id}")
|
||||||
except KeyError:
|
except KeyError:
|
||||||
reuploaded_documents[document.id] = await reupload_document(client, document)
|
try:
|
||||||
|
reuploaded_documents[document.id] = await reupload_document(client, document)
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Failed to reupload {document.id}: {e}")
|
||||||
|
continue
|
||||||
# Always ensure the body and telegram metadata is correct
|
# Always ensure the body and telegram metadata is correct
|
||||||
add_meta(document, reuploaded_documents[document.id], pack)
|
add_meta(document, reuploaded_documents[document.id], pack)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue