aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-05-02 18:35:50 +0600
committerSergey M․ <dstftw@gmail.com>2016-05-02 18:35:50 +0600
commit7960b0563b957d418ddd36555275d98ba4668c03 (patch)
tree5ef1c94057eba3a7bb0ac657f46cd8b471f6bdab /youtube_dl/YoutubeDL.py
parent5c9ced9504bd2ceb8e55a929124aad2091b23403 (diff)
downloadyoutube-dl-7960b0563b957d418ddd36555275d98ba4668c03.zip
youtube-dl-7960b0563b957d418ddd36555275d98ba4668c03.tar.gz
youtube-dl-7960b0563b957d418ddd36555275d98ba4668c03.tar.bz2
[YoutubeDL] Properly process unable-to-download-error on python2
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 0554333..4e57c96 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -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)