We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff10726 + c17d7ce commit 88b1833Copy full SHA for 88b1833
1 file changed
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