Skip to content

Commit 5fae3d9

Browse files
authored
Raise warning if Arduino libs can not be found in manifest
1 parent 849e12b commit 5fae3d9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

builder/frameworks/arduino.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,15 @@ def reinstall_framework() -> None:
281281
]
282282

283283
for spec in arduino_specs:
284-
url = str(spec).split("uri=", 1)[1][:-1]
285-
pm.install(url)
284+
try:
285+
spec_str = str(spec)
286+
if "uri=" in spec_str:
287+
url = spec_str.split("uri=", 1)[1][:-1]
288+
pm.install(url)
289+
else:
290+
print(f"Warning: Could not extract URL from spec: {spec}")
291+
except Exception as e:
292+
print(f"Error processing spec {spec}: {e}")
286293

287294
# Setup ESP32-Solo1 configuration
288295
setup_esp32_solo1_config()

0 commit comments

Comments
 (0)