From 3e10b20ba6bbcf4acb2f4685a43c3b80bcced9ed Mon Sep 17 00:00:00 2001 From: PatrickAlphaC <54278053+PatrickAlphaC@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:12:40 -0400 Subject: [PATCH] fixed if token is not none --- gaboon/commands/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gaboon/commands/install.py b/gaboon/commands/install.py index fe300b9..23e5267 100644 --- a/gaboon/commands/install.py +++ b/gaboon/commands/install.py @@ -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 {}