From 5dbf58ec018680dbaa40471530506abaf48fbf26 Mon Sep 17 00:00:00 2001 From: Kara Moraw Date: Tue, 16 Apr 2024 15:16:25 +0100 Subject: [PATCH] fix newline in token list --- fuji_server/harvester/github_harvester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuji_server/harvester/github_harvester.py b/fuji_server/harvester/github_harvester.py index a06400dd..15263186 100644 --- a/fuji_server/harvester/github_harvester.py +++ b/fuji_server/harvester/github_harvester.py @@ -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