Allow retry on Signet::AuthorizationError (#611)

This commit is contained in:
Sai Cheemalapati authored and GitHub committed 2017-09-18 12:40:11 -07:00
1 parent bc4644ca5e
commit 2a4efbf3b9
2 files changed
+40 -2

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ module Google
# NotFound, etc
auth_tries = (try == 1 && authorization_refreshable? ? 2 : 1)
Retriable.retriable tries: auth_tries,
on: [Google::Apis::AuthorizationError],
on: [Google::Apis::AuthorizationError, Signet::AuthorizationError],
on_retry: proc { |*| refresh_authorization } do
execute_once(client).tap do |result|
if block_given?