Skip to content

fix(review): avoid empty scene directories on failed video downloads - #88

Merged
crisng95 merged 1 commit into
crisng95:mainfrom
Bl0ck154:fix/review-sheets-download-before-dir-20261109
Nov 27, 2026
Merged

crisng95 merged 1 commit into
crisng95:mainfrom
Bl0ck154:fix/review-sheets-download-before-dir-20261109

Conversation

@Bl0ck154

@Bl0ck154 Bl0ck154 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

When a scene video cannot be fetched, prepare_review_sheets currently leaves an empty persistent output directory behind. This can happen when a Flow media URL has expired.

Move directory creation after the video fetch succeeds. An offline regression reproduces the original behavior, then verifies the directory stays absent if fetching fails.

Tested: pytest -q tests/unit/test_review_sheets_dirs.py tests/unit/test_video_reviewer.py — 30 passed. Successful downloads and contact sheet generation are unchanged.

@crisng95
crisng95 merged commit 4f4d966 into crisng95:main Nov 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants