diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py index 504cba885..4a4b8a415 100644 --- a/yt_dlp/extractor/generic.py +++ b/yt_dlp/extractor/generic.py @@ -2156,7 +2156,7 @@ def report_following_redirect(self, new_url): self._downloader.to_screen(f'[redirect] Following redirect to {new_url}') if new_url in self.visited_redirect_urls: raise ExtractorError( - f"Redirect loop detected for URL: {new_url}", + f'Redirect loop detected for URL: {new_url}', expected=True, ) self.visited_redirect_urls.add(new_url)