diff options
author | Egor Tensin <egor@tensin.name> | 2025-07-23 00:29:55 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2025-07-23 01:25:49 +0200 |
commit | d512352fdabcbde198893b00797a7b6e798d46eb (patch) | |
tree | fd60b64f59373896d3a37fb1aa6ea84e2787668a /cgit | |
parent | main: log the update error (diff) | |
download | cgitize-d512352fdabcbde198893b00797a7b6e798d46eb.tar.gz cgitize-d512352fdabcbde198893b00797a7b6e798d46eb.zip |
major bumps for major dependencies
Diffstat (limited to '')
-rw-r--r-- | cgitize/github.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cgitize/github.py b/cgitize/github.py index 02057c9..affa0b6 100644 --- a/cgitize/github.py +++ b/cgitize/github.py @@ -5,7 +5,7 @@ import logging -from github import Github, GithubException +from github import Auth, Github, GithubException from cgitize.repo import Repo @@ -13,7 +13,10 @@ from cgitize.repo import Repo class GitHub: def __init__(self, username, token): self._username = username - self._impl = Github(token) + auth = None + if token is not None: + auth = Auth.Token(token) + self._impl = Github(auth=auth) def get_repo(self, repo): try: |