fix nonetype error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user