Dec-16-2019, 11:07 PM
For better code, I would raise a specific exception such as
CacheTooOldError
and catch it. The same except clause can catch several types of exceptions.