Skip to content

Commit

Permalink
fixed if token is not none
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickAlphaC committed Sep 11, 2024
1 parent 214f96c commit 3e10b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gaboon/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _maybe_retrieve_github_auth() -> dict[str, str]:
Otherwise returns an empty dict if no auth token is present.
"""
token = os.getenv("GITHUB_TOKEN")
if token:
if token is not None:
auth = b64encode(token.encode()).decode()
return {"Authorization": f"Basic {auth}"}
return {}
Expand Down

0 comments on commit 3e10b20

Please sign in to comment.