From 0018fc97d5a0fdb7871d0447ea79ec61d0cb855a Mon Sep 17 00:00:00 2001 From: Cossid Date: Tue, 6 Jan 2026 08:46:22 -0600 Subject: [PATCH] Move full_path just in case to make sure exception message is valid. --- src/get_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/get_input.py b/src/get_input.py index c9c1d48..a0badab 100644 --- a/src/get_input.py +++ b/src/get_input.py @@ -28,8 +28,8 @@ UF2_FAMILY_MAP = { def api_get(short_path): + full_path = f"https://tuya-cloudcutter.github.io/api/{short_path}" try: - full_path = f"https://tuya-cloudcutter.github.io/api/{short_path}" with requests.get(full_path, timeout=(10, 60)) as r: if r.status_code == 404: print("The specified device does not exist in the API.")