From c47caa50a6b23fc81bb13f7dbdf45c703c339f60 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 19 Oct 2023 15:16:13 -0400 Subject: [PATCH] ENH: Return null on exception in expression language --- bids-validator/src/schema/applyRules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bids-validator/src/schema/applyRules.ts b/bids-validator/src/schema/applyRules.ts index 79657efc8..c246e622d 100644 --- a/bids-validator/src/schema/applyRules.ts +++ b/bids-validator/src/schema/applyRules.ts @@ -74,7 +74,7 @@ export function evalCheck(src: string, context: BIDSContext) { return test(safeContext) } catch (error) { logger.debug(error) - return false + return null } }