title: Continue execution after raising ValueError
body: <p>How can I print a thrown ValueError but also keep going for the next iteration? I searched some but mostly they are about try catch blocks. Consider my code:</p>
  
  <p>Attempt #1 </p>
  
  <pre><code>for i in range(15):
      if i == 3:
          raise ValueError("error message")
      print(i)
  </code></pre>
  
  <p>Attempt #2</p>
  
  <pre><code>for i in range(15):
      if i == 3:
          try:
              raise ValueError("error message")
          except:
              pass
      print(i)
  </code></pre>
  
  <p>In #1 I cannot continue after 3. In #2 I don't get any thrown error. How can I throw the ValueError but also keep going for the next iteration? I want to throw ValueError to the screen but keep printing the items.</p>