From 7ed79c5be5d3693414f54bb8fc8ca5a2bbe10344 Mon Sep 17 00:00:00 2001 From: arghdos Date: Thu, 20 Apr 2017 14:23:06 -0400 Subject: [PATCH] fix none comparing to int --- optionloop/optionloop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)