Another fix for single-sticker packs

This commit is contained in:
Fedor Indutny 2022-04-06 14:00:13 -07:00 committed by GitHub
parent 55c5f15cd9
commit 33b8b59c55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ async function doDownloadStickerPack(
});
const successfulStickerCount = jobResults.filter(item => item).length;
if (successfulStickerCount === 0) {
if (successfulStickerCount === 0 && nonCoverStickers.length !== 0) {
throw new Error('doDownloadStickerPack: All stickers failed to download');
}