aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2013-03-31 03:29:34 +0200
committerFilippo Valsorda <filippo.valsorda@gmail.com>2013-03-31 03:29:34 +0200
commit90a99c1b5e01b86c793fb9ecb80a2521d8ae0f79 (patch)
treea99c79b9c08edebd11e555a726455f8be0058cbc /test
parentf375d4b7de17b1ac3d8fda9d4f071e1e55be1963 (diff)
retry on UnavailableVideoError
Diffstat (limited to 'test')
-rw-r--r--test/test_download.py2
1 files changed, 1 insertions, 1 deletions
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))