Skip to content

Commit 1759967

Browse files
pdgendtcarlescufi
authored andcommitted
scripts: west_commands: runners: Fix jlink is_ip
Commit f987e8c introduced a regression where the is_ip check fails if no --id is passed as an argument. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 1689eaf commit 1759967

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/west_commands/runners/jlink.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
DEFAULT_JLINK_RTT_PORT = 19021
3131

3232
def is_ip(ip):
33+
if not ip:
34+
return False
3335
try:
3436
ipaddress.ip_address(ip.split(':')[0])
3537
except ValueError:

0 commit comments

Comments
 (0)