Fixed bux for debian, setup.py: pipx install
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
@@ -28,12 +28,15 @@ def init_gh_token():
|
||||
|
||||
def load_gh_token(path: Path):
|
||||
global token
|
||||
log.info(f"Loading secret github token")
|
||||
if not path.is_file():
|
||||
log.warning(f"Token load did not pass - file not found")
|
||||
return
|
||||
# load token
|
||||
token = path.read_text().strip()
|
||||
try:
|
||||
log.info(f"Loading secret github token")
|
||||
if not path.is_file():
|
||||
log.warning(f"Token load did not pass - file not found")
|
||||
return
|
||||
# load token
|
||||
token = path.read_text().strip()
|
||||
except Exception as e:
|
||||
log.warning(f"Token reading error: {e.__str__()}")
|
||||
|
||||
|
||||
def config_try_override(config_writer: GitConfigParser, section: str, option: str, value: str):
|
||||
|
||||
Reference in New Issue
Block a user