Skip to content

Commit

Permalink
fix brakeman bug
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Sep 21, 2018
1 parent 05a7a54 commit 3b5b1e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/models/cita_sync/persist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,10 @@ def save_blocks_with_infos
# @return [void]
def realtime_sync
loop do
save_blocks_with_infos
rescue StandardError
begin
save_blocks_with_infos
rescue
end
end
end

Expand Down

0 comments on commit 3b5b1e9

Please sign in to comment.