From b9b0a9260da9d5a77821c8819d3d67cafb2d2eca Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 12 Jun 2024 16:39:09 +0200 Subject: [PATCH] fix --- changedetectionio/processors/restock_diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/processors/restock_diff.py b/changedetectionio/processors/restock_diff.py index 5aa5f2439..92e8b96b7 100644 --- a/changedetectionio/processors/restock_diff.py +++ b/changedetectionio/processors/restock_diff.py @@ -161,7 +161,7 @@ class perform_site_check(difference_detection_processor): # All cases changed_detected = True - if watch.get('follow_price_changes') and watch.get('restock'): + if watch.get('follow_price_changes') and watch.get('restock') and update_obj['restock'].get('price'): price = float(update_obj['restock'].get('price')) previous_price = float(watch['restock'].get('price'))