Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
fix:file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
luyanci committed Jul 22, 2024
1 parent ec03d86 commit d10ee27
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/libs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ def loadroomcfg():
return

def _make_default_cfg():
try:
os.remove(f"./{room}.json")
finally:
with open(file=f"./{room}.json",mode="w",encoding="utf-8",errors="ignore") as cookies:
cookies.write(json.dumps(default,ensure_ascii=False))
with open(file=f"./{room}.json",mode="w",encoding="utf-8",errors="ignore") as cookies:
cookies.write(json.dumps(default,ensure_ascii=False))

if __name__ == "__main__":
#方便转换,直接运行这个py文件
Expand Down

0 comments on commit d10ee27

Please sign in to comment.