Skip to content

Commit 697cda2

Browse files
committed
feat: nicer stacktrace
1 parent 62b0b62 commit 697cda2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

gitlab/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,10 @@ def next(self):
837837
self._current += 1
838838
return item
839839
except IndexError:
840-
if self._next_url and self._get_next is True:
841-
self._query(self._next_url)
842-
return self.next()
840+
pass
843841

844-
raise StopIteration
842+
if self._next_url and self._get_next is True:
843+
self._query(self._next_url)
844+
return self.next()
845+
846+
raise StopIteration

0 commit comments

Comments
 (0)