Skip to content

Commit bee3187

Browse files
committed
Raise ProcessException for invalid library build URLs (in Bld.clone()), which also fixes probing of SCM during import/add and fixes the mbed CLI CI testing
1 parent 90cbb2f commit bee3187

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mbed/mbed.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def init(path, url):
244244
def clone(url, path=None, rev=None, depth=None, protocol=None):
245245
m = Bld.isurl(url)
246246
if not m:
247+
raise ProcessException(1, "Not an mbed library build URL")
247248
return False
248249

249250
arch_url = m.group(1) + '/archive/' + rev + '.zip'

0 commit comments

Comments
 (0)