From ef01d5946fef445941659496a25ca28a54469c5b Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 4 Oct 2017 20:32:23 +0000 Subject: Fix exception by clearing cache rather than setting to nil --- provisioning-model.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provisioning-model.lua b/provisioning-model.lua index ebbf27d..09a128e 100644 --- a/provisioning-model.lua +++ b/provisioning-model.lua @@ -155,8 +155,8 @@ end local handlesqlexception = function(connected, err) -- Can't trust cache, so clear it - saved_devices = nil - saved_device_params = nil + saved_devices = {} + saved_device_params = {} if connected then local sql = "ROLLBACK" mymodule.logevent(sql) -- cgit v1.2.3