diff options
author | dirkf <[email protected]> | 2022-08-08 14:21:09 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-08-08 14:21:09 +0100 |
commit | 4f10e1e7c733b32b5e5c9a459af8e2d45371ceca (patch) | |
tree | a52cc2ec86ad842fa396ec72662674a4ce1dcac0 | |
parent | e679476ea0ce3d54e78a1960ce5ce5c0be8c7d77 (diff) | |
download | youtube-dl-4f10e1e7c733b32b5e5c9a459af8e2d45371ceca.tar.gz youtube-dl-4f10e1e7c733b32b5e5c9a459af8e2d45371ceca.zip |
[test] Identify download errors better
-rw-r--r-- | test/test_download.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_download.py b/test/test_download.py index 5b95fa578..19936969f 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -164,7 +164,7 @@ def generator(test_case, tname): if not err.exc_info[0] in (compat_urllib_error.URLError, socket.timeout, UnavailableVideoError, compat_http_client.BadStatusLine) or (err.exc_info[0] == compat_HTTPError and err.exc_info[1].code == 503): msg = getattr(err, 'msg', error_to_compat_str(err)) err.msg = '%s (%s)' % (msg, tname, ) - raise + raise err if try_num == RETRIES: report_warning('%s failed due to network errors, skipping...' % tname) |