I personally prefer a for...else for this kind of pattern:

```python
for bucket in self.buckets:
  if inputValue in bucket:
    break
else:
  raise LookupError('Unable to find bucket')
```