| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -278,8 +278,10 @@ def list(self, **kwargs): | |||
| 278 | 278 | GitlabAuthenticationError: If authentication is not correct | |
| 279 | 279 | GitlabListError: If the server cannot perform the request | |
| 280 | 280 | """ | |
| 281 | - | ||
| 282 | - path = "/users/%s/projects" % self._parent.id | ||
| 281 | + if self._parent: | ||
| 282 | + path = "/users/%s/projects" % self._parent.id | ||
| 283 | + else: | ||
| 284 | + path = "/users/%s/projects" % kwargs["user_id"] | ||
| 283 | 285 | return ListMixin.list(self, path=path, **kwargs) | |
| 284 | 286 | ||
| 285 | 287 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments