Skip to content

Commit 8e975dd

Browse files
authored
fix: fix TypeError: expected str, ..., not NoneType
1 parent 68ab3f0 commit 8e975dd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • pythonforandroid/bootstraps/common/build

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ def clean(tinfo):
167167
continue
168168
if fn.endswith('.py') and byte_compile_python:
169169
fn = compile_py_file(fn, optimize_python=optimize_python)
170+
if fn is None:
171+
continue
170172
files.append((fn, relpath(realpath(fn), sd)))
171173
files.sort() # deterministic
172174

0 commit comments

Comments
 (0)