Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion botocore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3510,7 +3510,9 @@ def __getitem__(self, cache_key):
with open(actual_key) as f:
return json.load(f)
except (OSError, ValueError):
raise KeyError(cache_key)
raise KeyError(
f'Cache file {actual_key} may be corrupt, please delete it.'
)

def __delitem__(self, cache_key):
actual_key = self._convert_cache_key(cache_key)
Expand Down