fix nonetype error

This commit is contained in:
2026-06-11 12:51:59 -04:00
parent f5a8125b1e
commit 7b83dbd114
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -75,6 +75,8 @@ def process_face_mode(
# Find face metadata for this person
face_info = None
for p in asset.get("people", []):
if p is None:
continue
if p["id"] == person["id"] and (faces := p.get("faces")):
face_info = faces[0]
break