From 697cda241509dd76adc1249b8029366cfc1d9d6e Mon Sep 17 00:00:00 2001 From: Mitar Date: Sun, 15 Dec 2019 19:25:50 -0800 Subject: feat: nicer stacktrace --- gitlab/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gitlab') diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 09b7b81..03e5556 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -837,8 +837,10 @@ class GitlabList(object): self._current += 1 return item except IndexError: - if self._next_url and self._get_next is True: - self._query(self._next_url) - return self.next() + pass - raise StopIteration + if self._next_url and self._get_next is True: + self._query(self._next_url) + return self.next() + + raise StopIteration -- cgit v1.2.1