From 641c5f75041c3c85afd6baf38e46a6a849f97e0a Mon Sep 17 00:00:00 2001 From: mflierm Date: Thu, 10 Oct 2024 18:24:14 +0200 Subject: [PATCH] Catch when path was not removed --- amstrax/auto_processing/delete_live_stbc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/amstrax/auto_processing/delete_live_stbc.py b/amstrax/auto_processing/delete_live_stbc.py index 8fe79858..26795194 100644 --- a/amstrax/auto_processing/delete_live_stbc.py +++ b/amstrax/auto_processing/delete_live_stbc.py @@ -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}")