diff --git a/main.py b/main.py index e7a428d59..2018dfd02 100644 --- a/main.py +++ b/main.py @@ -118,7 +118,7 @@ def load_config(path: Path) -> Config: output = raw.get("output", {}) token_env = gitea.get("token_env", "GITEA_TOKEN") - token = os.getenv(token_env) if token_env else None + token = (os.getenv(token_env) or None) if token_env else None return Config( base_url=gitea["base_url"],