aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgit
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-07-23 00:29:55 +0200
committerEgor Tensin <egor@tensin.name>2025-07-23 01:25:49 +0200
commitd512352fdabcbde198893b00797a7b6e798d46eb (patch)
treefd60b64f59373896d3a37fb1aa6ea84e2787668a /cgit
parentmain: log the update error (diff)
downloadcgitize-d512352fdabcbde198893b00797a7b6e798d46eb.tar.gz
cgitize-d512352fdabcbde198893b00797a7b6e798d46eb.zip
major bumps for major dependencies
Diffstat (limited to '')
-rw-r--r--cgitize/github.py7
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: