Ignoring exceptions that should be ignored while repeating an action