Skip to content

Commit

Permalink
[web] Minor tweak for the indexer (#2577)
Browse files Browse the repository at this point in the history
Continuation of #2574.
  • Loading branch information
mnvr authored Jul 29, 2024
2 parents 3571281 + 3dbdea4 commit cf6336d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/packages/new/photos/services/ml/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ const indexNextBatch = async (
delegate?.workerDidProcessFile();
// Possibly unnecessary, but let us drain the microtask queue.
await wait(0);
} catch {
} catch (e) {
log.warn(`Skipping unindexable file ${item.enteFile.id}`, e);
allSuccess = false;
}
}
Expand Down Expand Up @@ -474,7 +475,7 @@ const index = async (
throw e;
}

if (originalImageBlob)
if (originalImageBlob && exif)
await cmpNewLib2(enteFile, originalImageBlob, exif);

log.debug(() => {
Expand Down

0 comments on commit cf6336d

Please sign in to comment.