Overview
Python exceptions are exceptional at helping your program take decisions. It is natural to feel the urge to catch them all and ignore them. But powerful programs can be created by learning how to leverage them in order to make robust scripts and take your coding skills to the next level. In this video, I cover several techniques that will help you improve your exception handling.
Topics include:
* Create a script that uses exception poorly, and then improve it
* Slowly clean up broad catching exceptions to improve the script
* Learn how to produce better errors from exceptions
* Leverage other tools like logging to produce meaningful errors and tracebacks while keeping messages clean
Follow along the repository to continue using more examples: https://github.com/alfredodeza/exceptions/
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Watch now
Unlock full access