laminlabs / bionty-base

Access public biological ontologies.
https://bionty-base.lamin.ai
Apache License 2.0
15 stars 3 forks source link

Check existence of the object before fetching it on s3 #548

Closed sunnyosun closed 4 months ago

sunnyosun commented 4 months ago

botocore get_object raises a Permission Error instead of NoSuchKey when the object doesn't exist: https://github.com/laminlabs/bionty-base/blob/main/bionty_base/dev/_io.py#L112