Code- Use dict .get instead of key

This commit is contained in:
dgtlmoon
2022-11-07 20:43:20 +01:00
parent ca3b351bae
commit 06bcfb28e5

View File

@@ -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(