This commit is contained in:
LanQian 2024-10-27 16:15:36 +08:00 committed by GitHub
parent ce85014a92
commit 36544beb71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ else:
if os.path.exists(USER_AGENTS_FILE):
with open(USER_AGENTS_FILE, "r", encoding="utf-8") as f:
try:
user_agent_map = json.load(file)
user_agent_map = json.load(f)
except json.JSONDecodeError:
user_agent_map = {}
# token数量变化时更新ua