]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[YoutubeDL] Properly process unable-to-download-error on python2
authorSergey M․ <dstftw@gmail.com>
Mon, 2 May 2016 12:35:50 +0000 (18:35 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 2 May 2016 12:35:50 +0000 (18:35 +0600)
youtube_dl/YoutubeDL.py

index 0554333629b829a2a6cb807546a643713cbd0ad5..4e57c96873498bef4a360ea603d46ef0f5caaad5 100755 (executable)
@@ -1639,7 +1639,7 @@ class YoutubeDL(object):
                     # Just a single file
                     success = dl(filename, info_dict)
             except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
-                self.report_error('unable to download video data: %s' % str(err))
+                self.report_error('unable to download video data: %s' % error_to_compat_str(err))
                 return
             except (OSError, IOError) as err:
                 raise UnavailableVideoError(err)