error handling if FR fails
This commit is contained in:
parent
fd325afe4f
commit
859b8771a5
@ -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<FaceMatches>();
|
||||
}
|
||||
}
|
||||
|
||||
[BindProperty]
|
||||
|
Loading…
x
Reference in New Issue
Block a user