Skip to content

Commit

Permalink
refactor(client): let mypy know http_password is set
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch committed Mar 27, 2023
1 parent 8b692e8 commit 2dd177b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/client.py
Expand Up @@ -533,7 +533,7 @@ def _set_auth_info(self) -> None:
self.headers.pop("PRIVATE-TOKEN", None)
self.headers["JOB-TOKEN"] = self.job_token

if self.http_username:
if self.http_username and self.http_password:
self._http_auth = requests.auth.HTTPBasicAuth(
self.http_username, self.http_password
)
Expand Down

0 comments on commit 2dd177b

Please sign in to comment.