Skip to content

Commit b9f2642

Browse files
committed
check bs for None
1 parent e7cb9c0 commit b9f2642

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pythonforandroid/build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,9 @@ def set_archs(self, arch_names):
484484
', '.join([arch.arch for arch in self.archs])))
485485

486486
def prepare_bootstrap(self, bs):
487-
bs.ctx = self
487+
if bs:
488+
# XXX: this condition fixes tox ci tests, dont know when in reality we have no bootstrap
489+
bs.ctx = self
488490
self.bootstrap = bs
489491
self.bootstrap.prepare_build_dir()
490492
self.bootstrap_build_dir = self.bootstrap.build_dir

0 commit comments

Comments
 (0)