Skip to content

Commit

Permalink
fix none comparing to int
Browse files Browse the repository at this point in the history
  • Loading branch information
skyreflectedinmirrors committed Apr 20, 2017
1 parent 4d9faf1 commit 7ed79c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optionloop/optionloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __next__(self):
else:
value_list = {}
startlen = 1
if self.index < self.end_index:
if self.end_index is not None and self.index < self.end_index:
for key, value in six.iteritems(self.mydict):
value_list[key] = value[int(self.index / startlen) % len(value)]
startlen *= len(value)
Expand Down

0 comments on commit 7ed79c5

Please sign in to comment.