In line 105 of bottleneck.py, it may be useful to check that `ds` is not an empty list before doing ` bdist = ds[-1]` I have a [minimal example](https://gist.github.com/xgao32/2a4ebff7061e8ea723bb2fa85fde4765) where such an exception happens and would like to understand what is `ds` being used for. Thanks.