Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 021c415

Browse files
authored
Merge pull request #65 from y-yagi/use_timeout_error
Use `Timeout::Error` instead of deprecated `TimeoutError`
2 parents 5adb7fe + 2b17bd0 commit 021c415

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/codecov.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def retry_request(req, https)
280280
retries = 3
281281
begin
282282
response = https.request(req)
283-
rescue TimeoutError => e
283+
rescue Timeout::Error => e
284284
retries -= 1
285285

286286
if retries.zero?

0 commit comments

Comments
 (0)