title: How to handle exceptions when reading rows of a file?
body: <p>Is there a way to handle exceptions when reading a specific row of a file?</p>
  
  <p>For example, say I have this block:</p>
  
  <pre><code>with open(fileIn, 'rb') as f:
      reader = csv.reader(f, delimiter='\t')
      for i, row in enumerate(reader):
          try:
              # stuff
          except:
              pass
  </code></pre>
  
  <p>and, after parsing half the file, I get the error </p>
  
  <blockquote>
    <p>IOError: [Errno 22] Invalid argument</p>
  </blockquote>
  
  <p>on the line </p>
  
  <pre><code>     for i, row in enumerate(reader):
  </code></pre>
  
  <p>and I'd like to continue parsing the file, skipping the problem row.</p>