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

Commit 2b17bd0

Browse files
committed
Use Timeout::Error instead of deprecated TimeoutError
`TimeoutError` was deprecated in Ruby 2.3. Ref: ruby/timeout@14ba13f
1 parent 0cebae3 commit 2b17bd0

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
@@ -273,7 +273,7 @@ def upload_to_codecov(req, https)
273273
retries = 3
274274
begin
275275
response = https.request(req)
276-
rescue TimeoutError => e
276+
rescue Timeout::Error => e
277277
retries -= 1
278278

279279
if retries.zero?

0 commit comments

Comments
 (0)