Handling Errors in Python

Best practices for gracefully handling errors in Python

Julie Elise
Better Programming
Published in
4 min readJun 18, 2020

--

Photo by Alexandru Acea on Upsplash.

“The greatest mistake is to imagine that we never err.” — Thomas Carlyle

Adding extensive error handling is crucial when developing maintainable and robust code. Errors can fall into several categories: logical errors, generated errors, compile-time…

--

--