1 parent 62b0b62 commit 697cda2Copy full SHA for 697cda2
1 file changed
gitlab/__init__.py
@@ -837,8 +837,10 @@ def next(self):
837
self._current += 1
838
return item
839
except IndexError:
840
- if self._next_url and self._get_next is True:
841
- self._query(self._next_url)
842
- return self.next()
+ pass
843
844
- raise StopIteration
+ if self._next_url and self._get_next is True:
+ self._query(self._next_url)
+ return self.next()
845
+
846
+ raise StopIteration
0 commit comments