Python · Lesson 9.1 · Pro

try and except

Handle errors instead of crashing, so one bad row doesn't stop the whole job.

In this lesson

  1. Catch an error
  2. Skip bad rows
  3. Catch the right error
  4. Look at the error