mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Oops, make sure we don't infinite loop :)
This commit is contained in:
parent
84f1e86ce7
commit
3402575fbd
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user