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
@@ -514,7 +514,7 @@ class TestUploadToSharepoint:
mock_token.side_effect = ValueError("Token error")
with pytest.raises(Exception, match="Failed to upload"):
with pytest.raises(RuntimeError, match="Failed to upload"):
upload_to_sharepoint.apply(args=[str(test_file)], kwargs={"file_id": 1}).get()
@patch("app.tasks.upload_to_sharepoint.upload_large_file_sharepoint")