diff --git a/EnotaryoPH/EnotaryoPH.Web/Pages/BaseTakeSelfiePageModel.cs b/EnotaryoPH/EnotaryoPH.Web/Pages/BaseTakeSelfiePageModel.cs index 54e51c6..2a2133d 100644 --- a/EnotaryoPH/EnotaryoPH.Web/Pages/BaseTakeSelfiePageModel.cs +++ b/EnotaryoPH/EnotaryoPH.Web/Pages/BaseTakeSelfiePageModel.cs @@ -111,9 +111,16 @@ namespace EnotaryoPH.Web.Pages Status = false, FacePlugins = [] }; - var result = await client.VerifyAsync(faceVerificationRequest); - var faceMatches = result.Result.SelectMany(x => x.FaceMatches); - return faceMatches; + try + { + var result = await client.VerifyAsync(faceVerificationRequest); + var faceMatches = result.Result.SelectMany(x => x.FaceMatches); + return faceMatches; + } + catch (Exception) + { + return Enumerable.Empty(); + } } [BindProperty]