Skip to content

Commit 59db9f6

Browse files
committed
tools build: return empty list for mbed2
We cant afford to raise an exception now. As anyone using this out there do not catch it. Rather an empty list, as it can work after this fix - won't do anything.
1 parent 810b026 commit 59db9f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/build_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,12 @@ def get_mbed_official_release(version):
412412
"""
413413

414414
# we ignore version for Mbed 6 as all targets in targets.json file are being supported
415-
# if someone passes 2, we return emtpy tuple, if 5, we keep the behavior the same as
415+
# if someone passes 2, we return empty tuple, if 5, we keep the behavior the same as
416416
# release version is deprecated and all targets are being supported that are present
417417
# in targets.json file
418418

419419
if version == '2':
420-
raise InvalidReleaseTargetException("Mbed 2 is no longer supported with this version of the tools")
420+
return tuple(tuple([]))
421421

422422
mbed_official_release = (
423423
tuple(

0 commit comments

Comments
 (0)