Skip to content

Commit

Permalink
Temporarily ignore Signet::AuthorizationError in drive search.
Browse files Browse the repository at this point in the history
  • Loading branch information
yasyf committed Feb 15, 2018
1 parent d1484d1 commit 3e2a013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/google_api/drive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def cache_options
def raw_find(query, fields)
Rails.logger.debug "GoogleApi::Drive list_files #{query} #{fields}"
@drive.list_files(q: query, order_by: 'createdTime desc', fields: fields).files.first
rescue Google::Apis::ClientError, Google::Apis::ServerError
rescue Google::Apis::ClientError, Google::Apis::ServerError, Signet::AuthorizationError
nil
end

Expand Down

0 comments on commit 3e2a013

Please sign in to comment.