From: Filippo Valsorda Date: Sun, 31 Mar 2013 01:29:34 +0000 (+0200) Subject: retry on UnavailableVideoError X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=90a99c1b5e01b86c793fb9ecb80a2521d8ae0f79;p=youtube-dl retry on UnavailableVideoError --- diff --git a/test/test_download.py b/test/test_download.py index e29092c45..59a6e1498 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -102,7 +102,7 @@ def generator(test_case): if retry == RETRIES: raise # 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 print('Retrying: {0} failed tries\n\n##########\n\n'.format(retry))