From 4f10e1e7c733b32b5e5c9a459af8e2d45371ceca Mon Sep 17 00:00:00 2001 From: dirkf Date: Mon, 8 Aug 2022 14:21:09 +0100 Subject: [PATCH] [test] Identify download errors better --- test/test_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)