From 682ae1a5afc4e1638e238bdefd36f479f18486cf Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 12 Jul 2024 13:37:22 +0200 Subject: [PATCH] Small fix for missing var --- changedetectionio/processors/restock_diff/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/processors/restock_diff/processor.py b/changedetectionio/processors/restock_diff/processor.py index 7b8db687..1b5b5e7e 100644 --- a/changedetectionio/processors/restock_diff/processor.py +++ b/changedetectionio/processors/restock_diff/processor.py @@ -118,7 +118,7 @@ class perform_site_check(difference_detection_processor): raise Exception("Watch no longer exists.") # Unset any existing notification error - update_obj = {'last_notification_error': False, 'last_error': False, 'restock': None} + update_obj = {'last_notification_error': False, 'last_error': False, 'restock': Restock()} self.screenshot = self.fetcher.screenshot self.xpath_data = self.fetcher.xpath_data