Skip to content

Commit

Permalink
Dropbox: Handle OAuth2::ConnectionError as Faraday::ConnectionFailed
Browse files Browse the repository at this point in the history
Currently, Dropbox API can raise OAuth2::ConnectionError
when failed to resolve DNS name.

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 committed Feb 19, 2025
1 parent bbb874e commit 71fdc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resultuploaders/dropbox/dropbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def handle_exceptions(where)
else
yield
end
rescue Faraday::ConnectionFailed
rescue Faraday::ConnectionFailed, OAuth2::ConnectionError
@logger.warn("Dropbox connection lost while #{where}")
raise unless (retries += 1) < @action_retries

Expand Down

0 comments on commit 71fdc65

Please sign in to comment.