Skip to content

Commit

Permalink
Fix active-elastic-job#50 Pass region as argument to NonExistentQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
tawan committed Jan 31, 2017
1 parent 7023166 commit e371313
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def queue_url(queue_name)
resp = aws_sqs_client.get_queue_url(queue_name: queue_name.to_s)
@queue_urls[cache_key] = resp.queue_url
rescue Aws::SQS::Errors::NonExistentQueue => e
raise NonExistentQueue, queue_name
raise NonExistentQueue.new(queue_name, aws_region)
end

def calculate_delay(timestamp)
Expand Down

0 comments on commit e371313

Please sign in to comment.