From 3bdb7657f481790922b9218bb2510291b57233e4 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 4 Nov 2025 10:56:15 +0100 Subject: [PATCH] hf_mfu_uscuid.py: avoid exception --- client/pyscripts/hf_mfu_uscuid.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/pyscripts/hf_mfu_uscuid.py b/client/pyscripts/hf_mfu_uscuid.py index 417694a33..aafe30725 100644 --- a/client/pyscripts/hf_mfu_uscuid.py +++ b/client/pyscripts/hf_mfu_uscuid.py @@ -110,7 +110,10 @@ def write_config(config: str): def grab_config() -> str: try_auth_magic() p.console("hf 14a raw -c" + ("s" if not (gen1a or alt) else "") + " E050") - return p.grabbed_output.split("\n")[-2][4:-9].replace(" ", "") + out = p.grabbed_output + if out == "": + return out + return out.split("\n")[-2][4:-9].replace(" ", "") if gen1a and alt: print(ERROR + "Please only choose one magic wakeup type.")