style: fix ruff + black formatting issues
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 16s
AI Code Review / AI Code Review (pull_request) Failing after 31s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 2m12s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 3m20s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 4m49s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 1395h13m50s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1395h15m15s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 1395h15m16s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1395h15m16s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1395h15m17s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1395h15m18s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1395h15m18s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1395h15m19s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1395h15m21s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1395h15m21s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1395h15m22s
CI/CD Pipeline / Check if frontend-only change (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1395h47m24s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1395h47m26s

This commit is contained in:
CI Bot
2026-07-20 12:13:06 +08:00
parent f9046da92e
commit d5cda56505
2 changed files with 6 additions and 7 deletions
@@ -564,9 +564,9 @@ class RenderAdapter:
len(clips),
)
final_rendered_ids = rendered_clip_ids if rendered_clip_ids is not None else [
c.id for c in clips if hasattr(c, "id")
]
final_rendered_ids = (
rendered_clip_ids if rendered_clip_ids is not None else [c.id for c in clips if hasattr(c, "id")]
)
final_failed_ids = failed_clip_ids if failed_clip_ids is not None else []
return RenderAdapterResult(
@@ -677,7 +677,8 @@ class RenderAdapter:
finally:
if temp_dir:
import shutil
try:
shutil.rmtree(temp_dir, ignore_errors=True)
except Exception as cleanup_err:
logger.warning("临时目录清理失败: path=%s error=%s", temp_dir, cleanup_err)
logger.warning("临时目录清理失败: path=%s error=%s", temp_dir, cleanup_err)
+1 -3
View File
@@ -1230,9 +1230,7 @@ def _render_video(
db.close()
if not render_result.success:
raise RuntimeError(
f"渲染失败: {render_result.error_message}"
)
raise RuntimeError(f"渲染失败: {render_result.error_message}")
render_output_path = render_result.output_path
render_duration = render_result.duration