Crash protection - handle the case where watch was deleted while being checked (#833)

pull/835/head
dgtlmoon 2022-08-14 19:13:45 +02:00 zatwierdzone przez GitHub
rodzic 034b1330d4
commit f82d3b648a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -194,6 +194,10 @@ class update_worker(threading.Thread):
else:
# Mark that we never had any failures
update_obj['consecutive_filter_failures'] = 0
# Crash protection, the watch entry could have been removed by this point (during a slow chrome fetch etc)
if not self.datastore.data['watching'].get(uuid):
continue
# Different exceptions mean that we may or may not want to bump the snapshot, trigger notifications etc
if process_changedetection_results: