Skip to content

Commit

Permalink
Drop the next_url attribute when listing
Browse files Browse the repository at this point in the history
Fixes #106
  • Loading branch information
Gauvain Pocentek committed May 8, 2016
1 parent 1600770 commit 64af398
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gitlab/__init__.py
Expand Up @@ -368,6 +368,10 @@ def list(self, obj_class, **kwargs):
for attribute in obj_class.requiredUrlAttrs:
del params[attribute]

# Also remove the next-url attribute that make queries fail
if 'next_url' in params:
del params['next_url']

try:
r = self.session.get(url, params=params, headers=headers,
verify=self.ssl_verify,
Expand Down

0 comments on commit 64af398

Please sign in to comment.