Just return nothing on max retries, same as with extractor errors

This commit is contained in:
Paul Storkman 2024-10-30 13:55:26 +01:00
parent 87ad4d4774
commit 9438d15dff

View File

@ -1633,7 +1633,7 @@ class YoutubeDL:
self.report_error(f'Giving up after {wait_retries - 1} {"retries" if wait_retries > 2 else "retry"} while waiting.') self.report_error(f'Giving up after {wait_retries - 1} {"retries" if wait_retries > 2 else "retry"} while waiting.')
else: else:
self.report_error('Video is still unavailable after waiting.') self.report_error('Video is still unavailable after waiting.')
raise UserNotLive('Maximum number of retries exceeded while waiting for stream') return
if e.expected: if e.expected:
self.to_screen(f'{e}; Re-extracting data') self.to_screen(f'{e}; Re-extracting data')
else: else: