mirror of
https://github.com/tuya-cloudcutter/tuya-cloudcutter.git
synced 2026-02-19 21:51:18 +01:00
Move full_path just in case to make sure exception message is valid.
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user