Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not iterable #37

Closed
JAORMX opened this issue Nov 5, 2013 · 1 comment
Closed

TypeError: 'NoneType' object is not iterable #37

JAORMX opened this issue Nov 5, 2013 · 1 comment

Comments

@JAORMX
Copy link
Contributor

JAORMX commented Nov 5, 2013

Every once in a while, for some reason, I get the following error on some unit tests:

ERROR: test_multipage_items (tests.tests.PaginationTestCase)

Traceback (most recent call last):
File "/home/travis/build/unaizalakain/TPB/tests/tests.py", line 111, in test_multipage_items
self.assertEqual(len(list(items)), 100)
File "/home/travis/build/unaizalakain/TPB/tpb/tpb.py", line 135, in items
first = next(items, None)
File "/home/travis/build/unaizalakain/TPB/tpb/tpb.py", line 60, in items
yield self._build_torrent(row)
File "/home/travis/build/unaizalakain/TPB/tpb/tpb.py", line 102, in _build_torrent
created = dateutil.parser.parse(match.groups()[0].replace('\xa0', ' '))
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg/dateutil/parser.py", line 748, in parse
return DEFAULTPARSER.parse(timestr, *_kwargs)
File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg/dateutil/parser.py", line 310, in parse
res, skipped_tokens = self._parse(timestr, *_kwargs)
TypeError: 'NoneType' object is not iterable

Does someone know why this happens sometimes?

@umazalakain
Copy link
Collaborator

Yep: #35

I haven't currently the time to cleanup and test the proposed patch, if somebody else wants to take it, it would be great!!

I close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants