summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2019-12-16 12:31:21 +0100
committerGitHub <noreply@github.com>2019-12-16 12:31:21 +0100
commit61eaad2ff32776c121eeb67202b0063a7b1cc2e1 (patch)
tree9ee5305327bf2451c2067020ee7e22b969a140ca
parent938fc0ae1eff7625d18cdf11fc019d83da02ba0c (diff)
parent697cda241509dd76adc1249b8029366cfc1d9d6e (diff)
downloadgitlab-61eaad2ff32776c121eeb67202b0063a7b1cc2e1.tar.gz
Merge pull request #973 from mitar/patch-1
Nicer stacktrace
-rw-r--r--gitlab/__init__.py10
1 files changed, 6 insertions, 4 deletions
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