diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-05-08 13:07:41 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-05-08 13:12:22 +0200 |
commit | 64af39818d02af1b40644d71fd047d6bc3f6e69e (patch) | |
tree | b9196b325245a7e5a45ea17b94ea71d71aeea9e8 | |
parent | 1600770e1d01aaaa90dbfd602e073e4e4a578fc1 (diff) | |
download | gitlab-64af39818d02af1b40644d71fd047d6bc3f6e69e.tar.gz |
Drop the next_url attribute when listing
Fixes #106
-rw-r--r-- | gitlab/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index f5e4294..1994d55 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -368,6 +368,10 @@ class Gitlab(object): 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, |