Skip to content

Commit

Permalink
Merge pull request #2233 from python-gitlab/fix/do-not-require-web-url
Browse files Browse the repository at this point in the history
  • Loading branch information
max-wittig committed Aug 10, 2022
2 parents 181390a + a07547c commit 99d580a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gitlab/client.py
Expand Up @@ -355,7 +355,9 @@ def auth(self) -> None:
success.
"""
self.user = self._objects.CurrentUserManager(self).get()
self._check_url(self.user.web_url, path=self.user.username)

if hasattr(self.user, "web_url") and hasattr(self.user, "username"):
self._check_url(self.user.web_url, path=self.user.username)

def version(self) -> Tuple[str, str]:
"""Returns the version and revision of the gitlab server.
Expand Down

0 comments on commit 99d580a

Please sign in to comment.