Skip to content

Commit

Permalink
resolve error in returned value of request_api
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Sep 22, 2023
1 parent 8f4be56 commit 6026c4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/bot/alegre.rb
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ def self.request_api(method, path, params = {}, query_or_body = 'body', retries
redis_response = redis.blpop(parsed_response.dig("body", "id"), timeout=120)
return JSON.parse(redis_response[1])
end
parsed_response
rescue StandardError => e
if retries > 0
sleep 1
Expand Down

0 comments on commit 6026c4d

Please sign in to comment.