mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 12:18:36 -06:00
fix: NoneType error
This commit is contained in:
parent
8e126d4d45
commit
3858faf970
1 changed files with 7 additions and 6 deletions
|
@ -125,12 +125,13 @@ def get_apks(appstate):
|
|||
hard_version = False
|
||||
compatible_vers = []
|
||||
for patch in patches:
|
||||
for pkg in patch['compatiblePackages']:
|
||||
if pkg['name'] == apk:
|
||||
try:
|
||||
compatible_vers.append(pkg['versions'][-1])
|
||||
except TypeError:
|
||||
pass
|
||||
if patch['compatiblePackages'] is not None:
|
||||
for pkg in patch['compatiblePackages']:
|
||||
if pkg['name'] == apk:
|
||||
try:
|
||||
compatible_vers.append(pkg['versions'][-1])
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
if not compatible_vers:
|
||||
required_ver = Version('0')
|
||||
|
|
Loading…
Reference in a new issue