title: Is it possible to use rescue with a conditional?
body: <p>Consider a Rack app. I only want to handle the error if we are not running a test:</p>
  
  <pre><code>begin
    do_something
  
    if ENV[ 'RACK_ENV' ] != 'test'
      rescue =&gt; error
        handle_error error
      end
    end
  end
  </code></pre>
  
  <p>This generates <code>syntax error, unexpected keyword_rescue (SyntaxError)
          rescue =&gt; error</code></p>
  
  <p>Is there a way to do this?</p>