Skip to content

Commit

Permalink
Fix using github token from enviroment (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwaker00 authored Apr 8, 2024
1 parent 91fd82d commit c4ae60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion montreal_forced_aligner/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4ae60b

Please sign in to comment.