Explorar o código

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

Manav Rathi hai 1 ano
pai
achega
6427c09f52
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/apps/photos/src/services/face/f-index.ts

+ 1 - 1
web/apps/photos/src/services/face/f-index.ts

@@ -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) {