Module 8
Error handling
tracebacks, try/except, your own tests
When you finish this module you can say:
I can read an error, keep my program running without crashing, and write my own tests.
By the end of this module you'll be able to write a data reader that never crashes: it skips malformed rows and reports how many it skipped.
StartLessons
7 lessons · ≈ 67 min
- Reading a traceback8 min
- try and except9 min
- Catching the right error9 min
- Raising your own errors9 min
- Write the test first11 min
- Debugging: shrink and isolate9 min
- Project: Robust data reader12 min · project
Practice exercises
Short writing exercises, independent of the lessons: Go to the exercises