]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[YoutubeDL] Use error_to_str
authorSergey M․ <dstftw@gmail.com>
Sun, 20 Dec 2015 00:16:19 +0000 (06:16 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 20 Dec 2015 00:16:19 +0000 (06:16 +0600)
youtube_dl/YoutubeDL.py

index 26b3adb025432bfc39f1ba35a0723006e04d0d02..216b5a5db7f36f63b7f4214264b552e6a5779d2b 100755 (executable)
@@ -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