fix (little used) cache?subresource=list/used APIs for missing content
Open
Priority: Medium
Type: Bug
- Dominant language
- Python
- Stars
- 21
- Forks
- 42
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 9
Description
when there's no page to show, boto3 `paginate` method returns a `Page` dictionary which does not have the `Contents` key,
while current code in CRAB (which follows AWS documnetation) would expect
an empty `Page['Contents']` object.
Need to catch KeyError exception as e.g. in https://alexwlchan.net/2019/07/listing-s3-keys/
or https://www.slsmk.com/using-python-boto3-with-amazon-aws-s3-buckets/
https://github.com/dmwm/CRABServer/blob/fd5094cbe3fdde498cb1d145b6528e1838a415cf/src/python/CRABInterface/RESTCache.py#L190-L234
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.