mirror of
https://github.com/lanqian528/chat2api.git
synced 2026-06-13 21:02:46 +08:00
fix bugs
This commit is contained in:
parent
ce85014a92
commit
36544beb71
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user