diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 26b3adb025..216b5a5db7 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -675,8 +675,8 @@ def extract_info(self, url, download=True, ie_key=None, extra_info={}, return self.process_ie_result(ie_result, download, extra_info) else: return ie_result - except ExtractorError as de: # An error we somewhat expected - self.report_error(compat_str(de), de.format_traceback()) + except ExtractorError as e: # An error we somewhat expected + self.report_error(error_to_str(e), e.format_traceback()) break except MaxDownloadsReached: raise