mirror of
https://github.com/bkerler/edl.git
synced 2024-11-21 10:38:10 -05:00
Partially revert commit a9e5008
This commit fixes this from happening on running a edl command without rebooting the device on every command: ``` Qualcomm Sahara / Firehose Client V3.62 (c) B.Kerler 2018-2024. main - Using loader 0000000000000000_b01193679ab2eac7_fhprg_peek.bin ... main - Waiting for the device main - Device detected :) main - Mode detected: firehose Traceback (most recent call last): File "/usr/local/bin/edl", line 393, in <module> base.run() File "/usr/local/bin/edl", line 295, in run version = conninfo.get("data").version AttributeError: 'NoneType' object has no attribute 'version' root@HP-PAVILION-590:~# ``` Signed-off-by: Christopher Lentocha <christopherericlentocha@gmail.com>
This commit is contained in:
parent
9f78e26c11
commit
8e179d84ae
1 changed files with 3 additions and 3 deletions
6
edl
6
edl
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3
|
||||
#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
# (c) B.Kerler 2018-2024 under GPLv3 license
|
||||
# If you use my code, make sure you refer to my name
|
||||
|
@ -290,9 +290,9 @@ class main(metaclass=LogBase):
|
|||
conninfo = self.doconnect(loop)
|
||||
mode = conninfo["mode"]
|
||||
if conninfo.get("data"):
|
||||
version = 2
|
||||
else:
|
||||
version = conninfo.get("data").version
|
||||
else:
|
||||
version = 2
|
||||
if mode == "sahara":
|
||||
cmd = conninfo["cmd"]
|
||||
if cmd == cmd_t.SAHARA_HELLO_REQ:
|
||||
|
|
Loading…
Reference in a new issue