Add missing variable in _handle_extract_dl_error()

This commit is contained in:
Tyler Flowers 2026-03-22 17:16:28 -04:00 committed by GitHub
parent 778f6c2413
commit 8935fc26b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class YtWrap:
return True, True
def _handle_extract_dl_error(self, err, attempt, max_attempts) -> tuple[int, bool]:
def _handle_extract_dl_error(self, url, err, attempt, max_attempts) -> tuple[int, bool]:
"""
handle download errors in extract()
returns attempt count, continue, error
@ -204,6 +204,7 @@ class YtWrap:
return None, str(err)
except yt_dlp.utils.DownloadError as err:
attempt, cont, error = self._handle_extract_dl_error(
url = url,
err = err,
attempt = attempt,
max_attempts = max_attempts