0
0
Fork 0

[YoutubeDL] Properly process unable-to-download-error on python2

main
Sergey M․ 2016-05-02 18:35:50 +06:00
parent 5c9ced9504
commit 7960b0563b
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions

View File

@ -1639,7 +1639,7 @@ class YoutubeDL(object):
# Just a single file # Just a single file
success = dl(filename, info_dict) success = dl(filename, info_dict)
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err: 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 return
except (OSError, IOError) as err: except (OSError, IOError) as err:
raise UnavailableVideoError(err) raise UnavailableVideoError(err)