lib/rdstation/retryable_request.rb in rdstation-ruby-client-2.8.0 vs lib/rdstation/retryable_request.rb in rdstation-ruby-client-2.8.1

- old
+ new

@@ -5,10 +5,10 @@ MAX_RETRIES = 1 def retryable_request(authorization) retries = 0 begin yield authorization - rescue ::RDStation::Error::ExpiredAccessToken => e + rescue ::RDStation::Error::ExpiredAccessToken, ::RDStation::Error::Unauthorized => e raise if !retry_possible?(authorization) || retries >= MAX_RETRIES retries += 1 refresh_access_token(authorization) retry