From 3d2bc5049b551c075db7c532b2c7ec125b680f89 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 12 Apr 2025 18:40:15 +0200 Subject: [PATCH] Small safety catch --- changedetectionio/conditions/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/conditions/__init__.py b/changedetectionio/conditions/__init__.py index 130791803..11cbaa40e 100644 --- a/changedetectionio/conditions/__init__.py +++ b/changedetectionio/conditions/__init__.py @@ -96,7 +96,7 @@ def execute_ruleset_against_all_plugins(current_watch_uuid: str, application_dat ruleset_settings = application_datastruct['watching'].get(current_watch_uuid) - if ruleset_settings.get("conditions"): + if ruleset_settings and ruleset_settings.get("conditions"): logic_operator = "and" if ruleset_settings.get("conditions_match_logic", "ALL") == "ALL" else "or" complete_rules = filter_complete_rules(ruleset_settings['conditions']) if complete_rules: