This commit is contained in:
ColdWindScholar 2024-06-10 01:47:36 +08:00
parent 3b9a6927fb
commit a9e50083a2

4
edl
View file

@ -289,10 +289,10 @@ class main(metaclass=LogBase):
self.cdc.timeout = 1500
conninfo = self.doconnect(loop)
mode = conninfo["mode"]
if "data" not in conninfo:
if conninfo.get("data"):
version = 2
else:
version = conninfo["data"].version
version = conninfo.get("data").version
if mode == "sahara":
cmd = conninfo["cmd"]
if cmd == cmd_t.SAHARA_HELLO_REQ: