title: Python: continue iteration of for loop on exception
body: <p>I have a simple <code>for</code> loop in Python that is exiting on exceptions even though the exception block contains a <code>continue</code>. There are still about 10 lines left to read when it hits an <code>IndexError</code> and exits the <code>for</code> loop. What am I missing here?</p>
  
  <pre><code>for row in hkx:  ##'hkx' are rows being read in from 'csv.open'
      try:
          print row[2],row[4]
      except IndexError, e:
          print 'Error:',e
          print 'Row Data:',len(row),row
          continue  ## I thought this would just move on to the next row in 'hkx' 
  </code></pre>
  
  <p>(sorry, total Python newbie here…)
  Thanks in advance!</p>