From a394dbbf23dc139d63c18aa1b55029b21867515d Mon Sep 17 00:00:00 2001 From: Don Hathaway <> Date: Mon, 2 Jan 2023 15:58:56 -0500 Subject: [PATCH] Allow creation of Person object --- Damselfly.Core/Services/ImageRecognitionService.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Damselfly.Core/Services/ImageRecognitionService.cs b/Damselfly.Core/Services/ImageRecognitionService.cs index 4bc022a1..e10bbbc6 100644 --- a/Damselfly.Core/Services/ImageRecognitionService.cs +++ b/Damselfly.Core/Services/ImageRecognitionService.cs @@ -105,9 +105,6 @@ public async Task UpdateName(ImageObject faceObject, string name) if (!faceObject.IsFace) throw new ArgumentException("Image object passed to name update."); - if (faceObject.Person == null) - throw new Exception("Person object did not have person included"); - using var scope = _scopeFactory.CreateScope(); using var db = scope.ServiceProvider.GetService(); @@ -727,4 +724,4 @@ public override string ToString() return Description; } } -} \ No newline at end of file +}