Skip to content

Commit d61c2d9

Browse files
committed
raise error when token is not defined
1 parent 7255620 commit d61c2d9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/process_systems.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ def main():
120120

121121
def _fetch_github_metadata_batch(repos: list[GitHubDefinition]) -> dict[str, dict]:
122122
token = os.environ.get("JEKYLL_TOKEN")
123+
if not token:
124+
raise RuntimeError("Missing JEKYLL_TOKEN environment variable")
125+
123126
headers = {
124127
"Authorization": f"Bearer {token}",
125128
"Content-Type": "application/json"

0 commit comments

Comments
 (0)