summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitar <mitar.git@tnode.com>2019-12-15 19:25:50 -0800
committerMitar <mitar.git@tnode.com>2019-12-16 01:37:24 -0800
commit697cda241509dd76adc1249b8029366cfc1d9d6e (patch)
tree4b0478d17fc713cf619dcbdf5fbf447a93cfbb39
parent62b0b624695593a65c9fb1fe18f8fc108ed7c4f7 (diff)
downloadgitlab-697cda241509dd76adc1249b8029366cfc1d9d6e.tar.gz
feat: 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