Raise StopIteration in debugging mode
Raise StopIteration in debugging mode

- Fixes a potential error, as the StopIteration was not getting raised
  in debugging mode.

ledatelescope/bifrost,ledatelescope/bifrost,ledatelescope/bifrost,ledatelescope/bifrost