mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-26 02:55:17 +00:00
[YoutubeDL] Properly process unable-to-download-error on python2
This commit is contained in:
parent
5c9ced9504
commit
7960b0563b
1 changed files with 1 additions and 1 deletions
|
@ -1639,7 +1639,7 @@ def compatible_formats(formats):
|
|||
# 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)
|
||||
|
|
Loading…
Reference in a new issue