Skip to content

Commit 274affa

Browse files
authored
Merge pull request kivy#1194 from inclement/fix_missing_sdk_exit
Added missing exit(1) call when SDK is not found
2 parents c280d12 + 8018bc5 commit 274affa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pythonforandroid/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir,
235235
else:
236236
error('Could not find `android` or `sdkmanager` binaries in '
237237
'Android SDK. Exiting.')
238+
exit(1)
238239
apis = [s for s in targets if re.match(r'^ *API level: ', s)]
239240
apis = [re.findall(r'[0-9]+', s) for s in apis]
240241
apis = [int(s[0]) for s in apis if s]

0 commit comments

Comments
 (0)