Fixed bux for debian, setup.py: pipx install

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
2022-08-08 14:12:19 +02:00
parent 76cbda80cc
commit be404eb5e3
4 changed files with 21 additions and 9 deletions

View File

@@ -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):