From 4bb8c5696342afbb80d2ceb4c527d635b1986a77 Mon Sep 17 00:00:00 2001 From: Hans155922 <35620329+Hans155922@users.noreply.github.com> Date: Thu, 11 Aug 2022 07:03:32 +0800 Subject: [PATCH] Update jd_identical.py --- jd_identical.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jd_identical.py b/jd_identical.py index eab4cc4..cfda7f9 100644 --- a/jd_identical.py +++ b/jd_identical.py @@ -157,8 +157,7 @@ def get_token() -> str or None: url = f"http://{ipport}/api/system" response = requests.get(url=url) data = json.loads(response.content.decode("utf-8")) - datas = data.get("data") - version=datas.get("version") + version=data.get("data").get("version") if int(version.split('.')[0])>=2: if int(version.split('.')[1])>=12: with open("/ql/data/config/auth.json", "r", encoding="utf-8") as f: