Don't let face crop save failures abort the entire indexing

This commit is contained in:
Manav Rathi 2024-05-19 11:59:03 +05:30
parent 9abc22ade5
commit 6427c09f52
No known key found for this signature in database

View file

@ -103,7 +103,7 @@ const indexFaces_ = async (enteFile: EnteFile, imageBitmap: ImageBitmap) => {
if (detectedFaces.length > 0) {
await Promise.all(
detectedFaces.map((face) => saveFaceCrop(imageBitmap, face)),
);
).catch((e) => log.error("Ignoring error when saving face crop", e));
// Execute the face alignment calculations
for (const face of mlFile.faces) {