Skip to content

Commit

Permalink
fix newline in token list
Browse files Browse the repository at this point in the history
  • Loading branch information
karacolada committed Apr 16, 2024
1 parent 7fd6854 commit 5dbf58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuji_server/harvester/github_harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def authenticate(self, config):
token_to_use = None
if token_file != "":
with open(token_file) as f:
token_list = f.readlines()
token_list = f.read().splitlines()
# find a token with enough remaining requests, or the one with most remaining if none available
fallback_max_token = None
fallback_max_rate_limit = 0
Expand Down

0 comments on commit 5dbf58e

Please sign in to comment.