summaryrefslogtreecommitdiff
path: root/gitlab/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/client.py')
-rw-r--r--gitlab/client.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/gitlab/client.py b/gitlab/client.py
index e3290e1..db2ace5 100644
--- a/gitlab/client.py
+++ b/gitlab/client.py
@@ -1135,13 +1135,8 @@ class GitlabList:
query_data = query_data or {}
result = self._gl.http_request("get", url, query_data=query_data, **kwargs)
try:
- links = result.links
- if links:
- next_url = links["next"]["url"]
- else:
- next_url = requests.utils.parse_header_links(result.headers["links"])[
- 0
- ]["url"]
+ next_url = result.links["next"]["url"]
+
# if the next url is different with user provided server URL
# then give a warning it may because of misconfiguration
# but if the option to fix provided then just reconstruct it