Skip to content

Commit

Permalink
refactor: replace os.environ.get with os.getenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantios committed Oct 29, 2024
1 parent 36dd7c5 commit 1b2835d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def dump_git_cache() -> None:

def make_git_request(url: str) -> requests.Response:
"""Make git request"""
auth = os.environ.get("GITHUB_AUTH")
auth = os.getenv("GITHUB_AUTH")
if auth is None:
return requests.get(url=url)
return requests.get(url=url, headers={"Authorization": f"Bearer {auth}"})
Expand Down

0 comments on commit 1b2835d

Please sign in to comment.