diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-12-20 06:16:19 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-12-20 06:16:19 +0600 |
commit | fb043a6e4ee98a2ea9fbb0975e701341bbd34bc3 (patch) | |
tree | cf0eb51ad9342fb8e5b09ab8ab5c7d4a9f0d5b5e /youtube_dl | |
parent | 7f8b271465df75bb1f83cb181dc45fee5fe02cf9 (diff) |
[YoutubeDL] Use error_to_str
Diffstat (limited to 'youtube_dl')
-rwxr-xr-x | youtube_dl/YoutubeDL.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 26b3adb02..216b5a5db 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -675,8 +675,8 @@ class YoutubeDL(object): 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 |