Fix SyntaxError in ytdlp.py start_download: duplicate try block

Two back-to-back try: blocks with only one finally: caused
"expected 'except' or 'finally' block" at startup. Merged into one.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 02:04:11 +02:00
parent 395b987644
commit c3191aa000

View File

@@ -908,8 +908,6 @@ def start_download(
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
text=True, text=True,
) )
try:
file_path = None file_path = None
stream_index = 0 stream_index = 0
output_lines: list[str] = [] output_lines: list[str] = []