Merge pull request #1 from DasPoschi/codex/uberprufen-und-beheben-von-fehlern
Fix MyJDownloader device status indentation
This commit is contained in:
@@ -174,11 +174,11 @@ def get_device():
|
|||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
status = (d.get("status") or "").upper()
|
status = (d.get("status") or "").upper()
|
||||||
if status not in {"ONLINE", "CONNECTED"}:
|
if status not in {"ONLINE", "CONNECTED"}:
|
||||||
# just a warning; do not fail
|
# just a warning; do not fail
|
||||||
print(f"[WARN] Device status is {status}, continuing anyway...")
|
print(f"[WARN] Device status is {status}, continuing anyway...")
|
||||||
return jd.get_device(d["name"])
|
return jd.get_device(d["name"])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user