https://scholarbasta.com/exception-handling-and-generators-in-python/
Exception Handling and Generators in Python