We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff10726 commit c17d7ceCopy full SHA for c17d7ce
gitlab/v4/objects.py
@@ -278,8 +278,10 @@ def list(self, **kwargs):
278
GitlabAuthenticationError: If authentication is not correct
279
GitlabListError: If the server cannot perform the request
280
"""
281
-
282
- path = "/users/%s/projects" % self._parent.id
+ if self._parent:
+ path = "/users/%s/projects" % self._parent.id
283
+ else:
284
+ path = "/users/%s/projects" % kwargs["user_id"]
285
return ListMixin.list(self, path=path, **kwargs)
286
287
0 commit comments