fixed empty field errors

This commit is contained in:
bwees
2022-10-19 19:00:38 -04:00
parent 0a2644d0c3
commit 296c7c46cb
+1 -1
View File
@@ -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:
if self.datastore.data['watching'][uuid].get('external_header_server') is not None or self.datastore.data['watching'][uuid].get('external_header_server') != "":
try:
resp = requests.get(self.datastore.data['watching'][uuid].get('external_header_server'))
if resp.status_code != 200: