From c4ae60bafdeee12f971712c99f62d7e4ab322991 Mon Sep 17 00:00:00 2001 From: Eugene Gritskevich Date: Mon, 8 Apr 2024 22:48:50 +0200 Subject: [PATCH] Fix using github token from enviroment (#788) --- montreal_forced_aligner/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/montreal_forced_aligner/models.py b/montreal_forced_aligner/models.py index b13ab332..124d3659 100644 --- a/montreal_forced_aligner/models.py +++ b/montreal_forced_aligner/models.py @@ -1667,7 +1667,7 @@ def __init__(self, token: typing.Optional[str] = None, ignore_cache: bool = Fals } self.token = token environment_token = os.environ.get("GITHUB_TOKEN", None) - if self.token is not None: + if self.token is None: self.token = environment_token self.synced_remote = False self.ignore_cache = ignore_cache