From 269524a358848b263a49cf5bd8fac3c785a96eeb Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 4 Aug 2020 20:05:04 +0200 Subject: [PATCH] Update TradingRecords.js --- LowFrequencyTrading/TradingRecords.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LowFrequencyTrading/TradingRecords.js b/LowFrequencyTrading/TradingRecords.js index 3aff3d3d3..c1646ef0c 100644 --- a/LowFrequencyTrading/TradingRecords.js +++ b/LowFrequencyTrading/TradingRecords.js @@ -151,7 +151,11 @@ exports.newTradingRecords = function newTradingRecords(bot, logger) { we use the Index value we find at the configuration of the Record Property. */ if (recordProperty.config.index !== undefined) { - targetNode = targetNode[recordProperty.config.index] + try { + targetNode = targetNode[recordProperty.config.index] + } catch (err) { + badDefinitionUnhandledException(err, 'Error setting Target Node.', product, recordProperty) + } } /* By Default the value is extracted from the value property of the Target Node.