修复无法自动解密(解密报错的问题)

This commit is contained in:
xaoyaoo 2024-05-07 20:54:22 +08:00
parent 654e45e528
commit 244165b658

View File

@ -76,7 +76,7 @@ def init_key():
return ReJson(1002, body=f"my_wxid is required: {my_wxid}")
old_merge_save_path = read_session(g.sf, my_wxid, "merge_path")
if os.path.exists(old_merge_save_path):
if isinstance(old_merge_save_path, str) and os.path.exists(old_merge_save_path):
pmsg = ParsingMSG(old_merge_save_path)
pmsg.close_all_connection()