only save if set

Filternotfound-should-save-error-type-screenshot
dgtlmoon 6 months ago
parent 2e65a5b628
commit d1a130d595

@ -340,7 +340,8 @@ class update_worker(threading.Thread):
err_text = "Warning, no filters were found, no change detection ran - Did the page change layout? update your Visual Filter if necessary."
self.datastore.update_watch(uuid=uuid, update_obj={'last_error': err_text})
watch.save_screenshot(screenshot=e.screenshot, as_error=True)
if e.screenshot:
watch.save_screenshot(screenshot=e.screenshot, as_error=True)
# Only when enabled, send the notification
if self.datastore.data['watching'][uuid].get('filter_failure_notification_send', False):

Loading…
Cancel
Save