catch exceptions when looking for contents of buckets