Skip to content

Commit 70b5934

Browse files
committed
when listing distributions, if one has no ndk_api, consider it to be 0
this avoids crashes, but also ensure that it doesn't consider it a match, is that something we want?
1 parent 55d0981 commit 70b5934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/distribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def get_distributions(cls, ctx, extra_dist_dirs=[]):
190190
dist.recipes = dist_info['recipes']
191191
if 'archs' in dist_info:
192192
dist.archs = dist_info['archs']
193-
dist.ndk_api = dist_info['ndk_api']
193+
dist.ndk_api = dist_info.get('ndk_api', 0)
194194
dists.append(dist)
195195
return dists
196196

0 commit comments

Comments
 (0)