retry on UnavailableVideoError

pull/764/merge
Filippo Valsorda 2013-03-31 03:29:34 +02:00
rodzic f375d4b7de
commit 90a99c1b5e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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))