AllenNeuralDynamics / aind-data-asset-indexer

MIT License
0 stars 0 forks source link

Handle empty buckets #66

Open mekhlakapoor opened 1 month ago

mekhlakapoor commented 1 month ago

The indexer gets a key error when a bucket is empty. I believe this can be fixed by using .get("CommonPrefixes", [])

https://github.com/AllenNeuralDynamics/aind-data-asset-indexer/blob/d919d90b22941734ca0969dc97a7d487c8eb9862/src/aind_data_asset_indexer/utils.py#L464