projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f375d4b
)
retry on UnavailableVideoError
author
Filippo Valsorda
<filippo.valsorda@gmail.com>
Sun, 31 Mar 2013 01:29:34 +0000
(
03:29
+0200)
committer
Filippo Valsorda
<filippo.valsorda@gmail.com>
Sun, 31 Mar 2013 01:29:34 +0000
(
03:29
+0200)
test/test_download.py
patch
|
blob
|
history
diff --git
a/test/test_download.py
b/test/test_download.py
index e29092c456b3d08c7e96c7cf35aae858118fd325..59a6e1498fd120bc6566f7256fcba4c20d313c7a 100644
(file)
--- 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))