8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bed427 commit 62e0defCopy full SHA for 62e0def
pythonforandroid/bootstraps/common/build/build.py
@@ -498,14 +498,16 @@ def make_package(args):
498
with open('project.properties', 'r') as fileh:
499
target = fileh.read().strip()
500
android_api = target.split('-')[1]
501
- try:
502
- int(android_api)
503
- except (ValueError, TypeError):
+
+ if android_api.isdigit():
+ android_api = int(android_api)
504
+ else:
505
raise ValueError(
506
"failed to extract the Android API level from " +
507
"build.properties. expected int, got: '" +
508
str(android_api) + "'"
509
)
510
511
with open('local.properties', 'r') as fileh:
512
sdk_dir = fileh.read().strip()
513
sdk_dir = sdk_dir[8:]
0 commit comments