Skip to content

Commit 64af398

Browse files
author
Gauvain Pocentek
committed
Drop the next_url attribute when listing
Fixes #106
1 parent 1600770 commit 64af398

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitlab/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ def list(self, obj_class, **kwargs):
368368
for attribute in obj_class.requiredUrlAttrs:
369369
del params[attribute]
370370

371+
# Also remove the next-url attribute that make queries fail
372+
if 'next_url' in params:
373+
del params['next_url']
374+
371375
try:
372376
r = self.session.get(url, params=params, headers=headers,
373377
verify=self.ssl_verify,

0 commit comments

Comments
 (0)