Skip to content

Commit

Permalink
Merge 944b4e8 into 7d293b7
Browse files Browse the repository at this point in the history
  • Loading branch information
mbonnefoy committed Oct 3, 2019
2 parents 7d293b7 + 944b4e8 commit b2c30d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -5,6 +5,7 @@ python:
- '3.4'
- '3.5'
- '3.6'
- '3.7'

cache:
pip: true
Expand Down
5 changes: 4 additions & 1 deletion predicthq/endpoints/v1/signals/endpoint.py
Expand Up @@ -14,7 +14,10 @@
def chunks(iterator, size):
iterable = iter(iterator)
while True:
yield itertools.chain([next(iterable)], itertools.islice(iterable, size - 1))
try:
yield itertools.chain([next(iterable)], itertools.islice(iterable, size - 1))
except StopIteration:
return


class SignalsEndpoint(UserBaseEndpoint):
Expand Down
2 changes: 1 addition & 1 deletion predicthq/version.py
@@ -1 +1 @@
__version__ = '0.3.0'
__version__ = '0.3.1'
2 changes: 1 addition & 1 deletion tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py34,py35,py36
envlist = py27,py34,py35,py36,py37

[testenv]
commands = python setup.py nosetests

0 comments on commit b2c30d0

Please sign in to comment.