Reliability fix - Remove loop that could cause app to stop checking if data changes (#1313)

This commit is contained in:
dgtlmoon
2023-01-15 16:12:47 +01:00
committed by GitHub
parent 024c8d8fd5
commit de15dfd80d
3 changed files with 4 additions and 8 deletions

View File

@@ -92,6 +92,10 @@ class perform_site_check():
# Pluggable content fetcher
prefer_backend = watch.get_fetch_backend
# @todo move this to Watch model get_fetch_backend
if not prefer_backend:
prefer_backend = self.datastore.data['settings']['application']['fetch_backend']
if hasattr(content_fetcher, prefer_backend):
klass = getattr(content_fetcher, prefer_backend)
else: