Skip to content

Commit 1683517

Browse files
committed
check for invalid bootstrap
1 parent 13287b2 commit 1683517

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonforandroid/toolchain.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,9 @@ def _build_package(self, args, package_type):
984984
ctx = self.ctx
985985
dist = self._dist
986986
bs = Bootstrap.get_bootstrap(args.bootstrap, ctx)
987+
if not bs:
988+
raise BuildInterruptingException("invalid bootstrap given: %s" % args.bootstrap)
987989
ctx.prepare_bootstrap(bs)
988-
989990
self._fix_args(args)
990991
env = self._prepare_release_env(args)
991992

0 commit comments

Comments
 (0)