Backport unhandled exception fix in cascache.py

Description

Fixes an potential unhandled exception with cascache.py

See !576 (merged)

This merge request, when approved, will close issue/bug:


Merge request reports

Loading