浏览代码

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

Manav Rathi 1 年之前
父节点
当前提交
6427c09f52
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {