Better handling of EmptyReply exception, always bump 'last_checked' in the case of an error (#354)

* Better handling of EmptyReply exception, always bump 'last_checked' in the case of an error, adds test
This commit is contained in:
dgtlmoon
2022-01-05 14:13:30 +01:00
committed by GitHub
parent f166ab1e30
commit f87f7077a6
6 changed files with 69 additions and 13 deletions

View File

@@ -58,9 +58,7 @@ class perform_site_check():
watch = self.datastore.data['watching'][uuid]
update_obj = {
"last_checked": timestamp
}
update_obj = {}
extra_headers = self.datastore.get_val(uuid, 'headers')