diff --git a/records.py b/records.py index add7f17..83dba44 100644 --- a/records.py +++ b/records.py @@ -145,7 +145,7 @@ class RecordCollection(object): if is_int: key = slice(key, key + 1) - while len(self) < key.stop or key.stop is None: + while key.stop is None or len(self) < key.stop: try: next(self) except StopIteration: