Skip to content

Commit

Permalink
Catch when path was not removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mflierm committed Oct 10, 2024
1 parent cebc2e4 commit 641c5f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions amstrax/auto_processing/delete_live_stbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ def delete_data(runsdb, run_doc, production, we_are_really_sure):
}
)
log.info(f"Moved stbc data entry for run {run_id} to 'deleted_data'")
else:
# TODO: make sure the run is skipped in the next try
log.error(f"Path {run_data_path} does still exist?! Check the file permissions.")

except Exception as e:
log.error(f"Error in deleting data for run {run_id}: {e}")
Expand Down

0 comments on commit 641c5f7

Please sign in to comment.