From 73756574e5b02c9d3772742523965c8eef909e7f Mon Sep 17 00:00:00 2001 From: DasPoschi Date: Wed, 31 Dec 2025 13:10:35 +0100 Subject: [PATCH] Fix MyJDownloader device status indentation --- jd-webgui/app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jd-webgui/app.py b/jd-webgui/app.py index f0b7277..9bd5d8b 100644 --- a/jd-webgui/app.py +++ b/jd-webgui/app.py @@ -174,11 +174,11 @@ def get_device(): time.sleep(2) continue - status = (d.get("status") or "").upper() - if status not in {"ONLINE", "CONNECTED"}: - # just a warning; do not fail - print(f"[WARN] Device status is {status}, continuing anyway...") - return jd.get_device(d["name"]) + status = (d.get("status") or "").upper() + if status not in {"ONLINE", "CONNECTED"}: + # just a warning; do not fail + print(f"[WARN] Device status is {status}, continuing anyway...") + return jd.get_device(d["name"])