From 8018bc5b3dcb0fadacf17b31b21a694f2f1b5023 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Tue, 12 Dec 2017 00:45:30 +0000 Subject: [PATCH] Added missing exit(1) call when SDK is not found --- pythonforandroid/build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonforandroid/build.py b/pythonforandroid/build.py index 4ab2f596d1..9bdb69491e 100644 --- a/pythonforandroid/build.py +++ b/pythonforandroid/build.py @@ -235,6 +235,7 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir, else: error('Could not find `android` or `sdkmanager` binaries in ' 'Android SDK. Exiting.') + exit(1) apis = [s for s in targets if re.match(r'^ *API level: ', s)] apis = [re.findall(r'[0-9]+', s) for s in apis] apis = [int(s[0]) for s in apis if s]