mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 20:28:37 -06:00
fix: Check if apk already exists in present_vers before trying to access it
This commit is contained in:
parent
8b70217909
commit
25fc3e4310
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ def get_apks(appstate):
|
|||
|
||||
print(f"Chosen required version of {apk} is {required_ver}.")
|
||||
|
||||
if appstate['present_vers'][apk] == required_ver:
|
||||
if apk in appstate['present_vers'] and appstate['present_vers'][apk] == required_ver:
|
||||
print("It's already present on disk, so skipping download.")
|
||||
else:
|
||||
apkpure_dl(apk, apkpure_appname, required_ver,
|
||||
|
|
Loading…
Reference in a new issue