Commit b0c21b91 authored by dwxh's avatar dwxh 🕸
Browse files

fffffffffix

parent beaa36a0
......@@ -45,7 +45,7 @@ def init_ql_session():
if not QL: return
with open("/ql/config/auth.json", "r", encoding="utf-8") as f:
cid = CaseInsensitiveDict()
cid['Authorization'] = f"Bearer {json.load(f)['token']}"
cid['Authorization'] = f"Bearer {json.load(f).get('token')}"
ql_session.headers = cid
......@@ -241,5 +241,5 @@ async def cron_add(conv, file_path, msg, markup):
else:
await conv.send_message(f"添加定时任务失败!{res}")
init_ql_session()
if QL:
init_ql_session()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment