Place custom criteria call inside try block
This commit is contained in:
parent
b4ce5b641c
commit
cffaec92ec
1 changed files with 1 additions and 2 deletions
|
|
@ -205,10 +205,9 @@ namespace Observatory.Explorer
|
||||||
parents = null;
|
parents = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var result = criteriaFunction.Call(scan, parents, scanList, bioSignals, geoSignals);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
var result = criteriaFunction.Call(scan, parents, scanList, bioSignals, geoSignals);
|
||||||
if (result.Length > 0 && ((bool?)result[0]).GetValueOrDefault(false))
|
if (result.Length > 0 && ((bool?)result[0]).GetValueOrDefault(false))
|
||||||
{
|
{
|
||||||
results.Add((result[1].ToString(), result[2].ToString()));
|
results.Add((result[1].ToString(), result[2].ToString()));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue