@ -212,9 +212,7 @@ class update_worker(threading.Thread):
if e . page_text :
if e . page_text :
self . datastore . save_error_text ( watch_uuid = uuid , contents = e . page_text )
self . datastore . save_error_text ( watch_uuid = uuid , contents = e . page_text )
self . datastore . update_watch ( uuid = uuid , update_obj = { ' last_error ' : err_text ,
self . datastore . update_watch ( uuid = uuid , update_obj = { ' last_error ' : err_text } )
# So that we get a trigger when the content is added again
' previous_md5 ' : ' ' } )
process_changedetection_results = False
process_changedetection_results = False
except FilterNotFoundInResponse as e :
except FilterNotFoundInResponse as e :
@ -222,9 +220,7 @@ class update_worker(threading.Thread):
continue
continue
err_text = " Warning, no filters were found, no change detection ran. "
err_text = " Warning, no filters were found, no change detection ran. "
self . datastore . update_watch ( uuid = uuid , update_obj = { ' last_error ' : err_text ,
self . datastore . update_watch ( uuid = uuid , update_obj = { ' last_error ' : err_text } )
# So that we get a trigger when the content is added again
' previous_md5 ' : ' ' } )
# Only when enabled, send the notification
# Only when enabled, send the notification
if self . datastore . data [ ' watching ' ] [ uuid ] . get ( ' filter_failure_notification_send ' , False ) :
if self . datastore . data [ ' watching ' ] [ uuid ] . get ( ' filter_failure_notification_send ' , False ) :
@ -254,9 +250,7 @@ class update_worker(threading.Thread):
continue
continue
err_text = " Warning, browser step at position {} could not run, target not found, check the watch, add a delay if necessary. " . format ( e . step_n + 1 )
err_text = " Warning, browser step at position {} could not run, target not found, check the watch, add a delay if necessary. " . format ( e . step_n + 1 )
self . datastore . update_watch ( uuid = uuid , update_obj = { ' last_error ' : err_text ,
self . datastore . update_watch ( uuid = uuid , update_obj = { ' last_error ' : err_text } )
# So that we get a trigger when the content is added again
' previous_md5 ' : ' ' } )
if self . datastore . data [ ' watching ' ] [ uuid ] . get ( ' filter_failure_notification_send ' , False ) :
if self . datastore . data [ ' watching ' ] [ uuid ] . get ( ' filter_failure_notification_send ' , False ) :