wagnerrp/pytmdb3 — pull request #51 by alanjds (2014-11-13 18:55:45+00:00)
Title: [FIX] IndexError: list index out of range

Solved: For unknown reason, PagedIterator_parent changes its length. This sometimes makes PagedIterator.next() raise IndexError.

```python
Traceback (most recent call last):
File "/home/vagrant/.virtualenvs/omelete.v3/bin/django-admin", line 9, in
load_entry_point('Django==1.7.1', 'console_scripts', 'django-admin')()
(...)
for i, result in enumerate(itertools.chain(*[tmdb3.searchSeries(query=x) or [] for x in search_keys])):
File "/home/vagrant/.virtualenvs/omelete.v3/local/lib/python2.7/site-packages/tmdb3/pager.py", line 25, in next
return self._parent[self._index]
File "/home/vagrant/.virtualenvs/omelete.v3/local/lib/python2.7/site-packages/tmdb3/pager.py", line 70, in __getitem__
return self._data[index]
IndexError: list index out of range
```