From 06bcfb28e5e7a6e0cff352c28a1405e7717f2167 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 7 Nov 2022 20:43:20 +0100 Subject: [PATCH] Code- Use dict .get instead of key --- changedetectionio/fetch_site_status.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changedetectionio/fetch_site_status.py b/changedetectionio/fetch_site_status.py index 12894b78..b291a466 100644 --- a/changedetectionio/fetch_site_status.py +++ b/changedetectionio/fetch_site_status.py @@ -134,7 +134,8 @@ class perform_site_check(): is_html = False is_json = False - include_filters_rule = watch['include_filters'] + include_filters_rule = watch.get('include_filters', []) + #include_filters_rule = watch['include_filters'] subtractive_selectors = watch.get( "subtractive_selectors", [] ) + self.datastore.data["settings"]["application"].get(