Skip to content

Commit b2c63c8

Browse files
Merge branch 'main' into th/rebuild-packaging
2 parents 2614b42 + 0728eb0 commit b2c63c8

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

codecov_cli/helpers/request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def wrapper(*args, **kwargs):
7979
)
8080
sleep(backoff_time(retry))
8181
retry += 1
82-
raise Exception("Request failed after too many retries")
82+
raise Exception(f"Request failed after too many retries. URL: {kwargs.get('url', args[0] if args else 'Unknown')}")
8383

8484
return wrapper
8585

tests/helpers/test_request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_request_retry_too_many_errors(mocker):
151151
)
152152
with pytest.raises(Exception) as exp:
153153
_ = send_post_request("my_url")
154-
assert str(exp.value) == "Request failed after too many retries"
154+
assert str(exp.value) == "Request failed after too many retries. URL: my_url"
155155

156156

157157
def test_user_agent(mocker):

tests/helpers/test_upload_sender.py

-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ def test_upload_sender_result_fail_post_500s(
366366
matcher = re.compile(
367367
rf"(warning.*((Response status code was {error_code})|(Request failed\. Retrying)).*(\n)?){{6}}"
368368
)
369-
370369
assert matcher.match(capsys.readouterr().err) is not None
371370

372371
def test_upload_sender_result_fail_put_400(

0 commit comments

Comments
 (0)