mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 18:44:27 +02:00
Quick fix when board doesn’t have debug configuration
This commit is contained in:
@@ -29,7 +29,7 @@ def ProcessDebug(env):
|
||||
def DebugLinkSettings(env):
|
||||
if "BOARD" not in env:
|
||||
return
|
||||
board_debug = env.BoardConfig().get("debug")
|
||||
board_debug = env.BoardConfig().get("debug", {})
|
||||
if not board_debug or not board_debug.get("links"):
|
||||
return
|
||||
debug_links = board_debug.get("links")
|
||||
|
Reference in New Issue
Block a user