Catching biometric tensor decode errors.

This commit is contained in:
DebaucheryLibrarian
2026-07-05 20:57:00 +02:00
parent dd48ef9194
commit fe2b63878c

View File

@@ -75,9 +75,10 @@ async function getBiometrics(avatarEntry) {
return null;
}
const tensor = human.tf.node.decodeImage(buffer, 3);
let tensor;
try {
tensor = human.tf.node.decodeImage(buffer, 3);
const result = await human.detect(tensor);
return result;