Plawright content fetcher - Fixes for status codes and screenshot info (#2168)

This commit is contained in:
dgtlmoon
2024-02-08 15:15:04 +01:00
committed by GitHub
parent c5a4e0aaa3
commit 3287283065
2 changed files with 11 additions and 8 deletions

View File

@@ -411,7 +411,7 @@ class update_worker(threading.Thread):
'last_check_status': e.status_code})
process_changedetection_results = False
except content_fetcher.ScreenshotUnavailable as e:
err_text = "Screenshot unavailable, page did not render fully in the expected time - try increasing 'Wait seconds before extracting text'"
err_text = "Screenshot unavailable, page did not render fully in the expected time or page was too long - try increasing 'Wait seconds before extracting text'"
self.datastore.update_watch(uuid=uuid, update_obj={'last_error': err_text,
'last_check_status': e.status_code})
process_changedetection_results = False