Skip to content

Commit

Permalink
Update e0e1-wx.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eeeeeeeeee-code authored May 15, 2024
1 parent adbfc86 commit 6b67663
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e0e1-wx.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class CONFIG:
def __init__(self):
config_path = os.path.join(os.path.dirname(__file__), "config.yaml")
try:
config = safe_load(open(config_path, "r", encoding="gb18030").read())
except:
config = safe_load(open(config_path, "r", encoding="utf-8").read())
except:
config = safe_load(open(config_path, "r", encoding="gb18030").read())

self.wx_file = config["wx-tools"]["wx-file"]
self.feishutf = config["bot"]["feishu-tf"]
Expand All @@ -52,9 +52,9 @@ class CONFIG_YAML:
def __init__(self):
config_path = os.path.join(os.path.dirname(__file__), "config.yaml")
try:
config = safe_load(open(config_path, "r", encoding="gb18030").read())
except:
config = safe_load(open(config_path, "r", encoding="utf-8").read())
except:
config = safe_load(open(config_path, "r", encoding="gb18030").read())
self.not_asyncio_http = config["tools"]["not_asyncio_http"]
self.not_asyncio_port = config["tools"]["not_asyncio_stats"]
self.max_workers = config["tools"]["max_workers"]
Expand Down

0 comments on commit 6b67663

Please sign in to comment.