Oops, make sure we don't infinite loop :)

This commit is contained in:
Andrew Brown 2017-02-06 20:04:48 +00:00
parent 84f1e86ce7
commit 3402575fbd

View File

@ -27,6 +27,7 @@ class MainController < ApplicationController
raise RetryMe if @question.nil? || @question[:question].nil? # :(
rescue RetryMe
attempts += 1
retry if attempts < 5
end
end