update: treat target and min sdk version as int

This commit is contained in:
Michael Pöhn 2019-02-01 09:34:57 +01:00 committed by Hans-Christoph Steiner
parent 64bab7a94c
commit dd695c650e
5 changed files with 70 additions and 38 deletions

View file

@ -1203,7 +1203,7 @@ def _sanitize_sdk_version(value):
try:
sdk_version = int(value)
if sdk_version > 0:
return str(sdk_version) # heinous, but this is still str in the codebase
return sdk_version
except (TypeError, ValueError):
pass
return None