cache try except