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 181390a commit a07547cCopy full SHA for a07547c
gitlab/client.py
@@ -355,7 +355,9 @@ def auth(self) -> None:
355
success.
356
"""
357
self.user = self._objects.CurrentUserManager(self).get()
358
- self._check_url(self.user.web_url, path=self.user.username)
+
359
+ if hasattr(self.user, "web_url") and hasattr(self.user, "username"):
360
+ self._check_url(self.user.web_url, path=self.user.username)
361
362
def version(self) -> Tuple[str, str]:
363
"""Returns the version and revision of the gitlab server.
0 commit comments