diff --git a/optionloop/optionloop.py b/optionloop/optionloop.py index da68032..a47b264 100644 --- a/optionloop/optionloop.py +++ b/optionloop/optionloop.py @@ -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)