diff --git a/lib/octokit/middleware/follow_redirects.rb b/lib/octokit/middleware/follow_redirects.rb index 00db73b6e..3b3556ee7 100644 --- a/lib/octokit/middleware/follow_redirects.rb +++ b/lib/octokit/middleware/follow_redirects.rb @@ -11,7 +11,7 @@ module Octokit module Middleware # Public: Exception thrown when the maximum amount of requests is exceeded. - class RedirectLimitReached < Faraday::Error::ClientError + class RedirectLimitReached < Faraday::ClientError attr_reader :response def initialize(response)