mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-25 21:12:52 +08:00
Correct exception raising
This commit is contained in:
parent
b08e09c370
commit
6ad98fb3fd
@ -463,7 +463,7 @@ class FileDownloader(object):
|
|||||||
try:
|
try:
|
||||||
success = self._do_download(filename, info_dict)
|
success = self._do_download(filename, info_dict)
|
||||||
except (OSError, IOError) as err:
|
except (OSError, IOError) as err:
|
||||||
raise UnavailableVideoError
|
raise UnavailableVideoError()
|
||||||
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.trouble(u'ERROR: unable to download video data: %s' % str(err))
|
self.trouble(u'ERROR: unable to download video data: %s' % str(err))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user