Skip to content

Commit

Permalink
fix:cookie加载后自动去除末尾空格
Browse files Browse the repository at this point in the history
Signed-off-by: Womsxd <[email protected]>
  • Loading branch information
Womsxd committed Jun 30, 2024
1 parent 7059706 commit d5a49f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def load_config(p_path=None):
if data['version'] == 10:
data = config_v10_update(data)
save_config(p_config=data)
# 去除cookie最末尾的空格
data["account"]["cookie"] = str(data["account"]["cookie"]).rstrip(' ')
config = data
log.info("Config加载完毕")
return data
Expand Down

0 comments on commit d5a49f3

Please sign in to comment.