From 76fd27dfabb3d2575e022844ef932db104943a5d Mon Sep 17 00:00:00 2001 From: bwees Date: Wed, 19 Oct 2022 19:10:01 -0400 Subject: [PATCH] fix logic error --- changedetectionio/fetch_site_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/fetch_site_status.py b/changedetectionio/fetch_site_status.py index 743c2bc9c..32d8c8a85 100644 --- a/changedetectionio/fetch_site_status.py +++ b/changedetectionio/fetch_site_status.py @@ -56,7 +56,7 @@ class perform_site_check(): # Tweak the base config with the per-watch ones request_headers = self.datastore.data['settings']['headers'].copy() - if self.datastore.data['watching'][uuid].get('external_header_server') is not None or self.datastore.data['watching'][uuid].get('external_header_server') != "" and self.datastore.data['watching'][uuid].get('external_header_server') != "None": + if self.datastore.data['watching'][uuid].get('external_header_server') is not None and self.datastore.data['watching'][uuid].get('external_header_server') != "" and self.datastore.data['watching'][uuid].get('external_header_server') != "None": try: resp = requests.get(self.datastore.data['watching'][uuid].get('external_header_server')) if resp.status_code != 200: