1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 21:42:58 +08:00

retry on UnavailableVideoError

This commit is contained in:
Filippo Valsorda 2013-03-31 03:29:34 +02:00
parent f375d4b7de
commit 90a99c1b5e

View File

@ -102,7 +102,7 @@ def generator(test_case):
if retry == RETRIES: raise if retry == RETRIES: raise
# Check if the exception is not a network related one # Check if the exception is not a network related one
if not err.exc_info[0] in (ZeroDivisionError, compat_urllib_error.URLError, socket.timeout): if not err.exc_info[0] in (compat_urllib_error.URLError, socket.timeout, UnavailableVideoError):
raise raise
print('Retrying: {0} failed tries\n\n##########\n\n'.format(retry)) print('Retrying: {0} failed tries\n\n##########\n\n'.format(retry))