Skip to content

Instantly share code, notes, and snippets.

@thomasbiddle
Created August 2, 2013 20:23
Show Gist options
  • Save thomasbiddle/6143161 to your computer and use it in GitHub Desktop.
Save thomasbiddle/6143161 to your computer and use it in GitHub Desktop.
...
rescue Trac::TracException
@retries_trac ||= 0
@retries_trac += 1
@logger.info("Trac isn't responding - Retry ##{@retries_trac}.")
retry if @retries_trac < 10
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment