| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b815f3a commit dc3dcd1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -365,11 +365,17 @@ def _raw_list(self, path_, cls, extra_attrs={}, **kwargs): | |||
| 365 | 365 | ||
| 366 | 366 | get_all_results = kwargs.get('all', False) | |
| 367 | 367 | ||
| 368 | + # Remove these keys to avoid breaking the listing (urls will get too | ||
| 369 | + # long otherwise) | ||
| 370 | + for key in ['all', 'next_url']: | ||
| 371 | + if key in params: | ||
| 372 | + del params[key] | ||
| 373 | + | ||
| 368 | 374 | r = self._raw_get(path_, **params) | |
| 369 | 375 | raise_error_from_response(r, GitlabListError) | |
| 370 | 376 | ||
| 371 | - # Remove parameters from kwargs before passing it to constructor | ||
| 372 | - for key in ['all', 'page', 'per_page', 'sudo', 'next_url']: | ||
| 377 | + # These attributes are not needed in the object | ||
| 378 | + for key in ['page', 'per_page', 'sudo']: | ||
| 373 | 379 | if key in params: | |
| 374 | 380 | del params[key] | |
| 375 | 381 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments