fix(storage): use RuntimeError instead of bare Exception in SharePoint task

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-10 00:23:52 +00:00
parent 13aa14b8e4
commit 2b698cc694
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -335,4 +335,4 @@ def upload_to_sharepoint(self, file_path: str, file_id: int = None, folder_overr
error_msg = f"Failed to upload {filename} to SharePoint: {str(e)}"
logger.error("[%s] %s", task_id, error_msg)
log_task_progress(task_id, "upload_to_sharepoint", "failure", error_msg, file_id=file_id)
raise Exception(error_msg)
raise RuntimeError(error_msg) from e