sys_patch_auto: Fix KeyError

This commit is contained in:
Mykola Grymalyuk
2022-12-11 22:53:05 -07:00
parent 4ffe6bed9b
commit f4f4f3e1f3
2 changed files with 4 additions and 2 deletions

View File

@@ -77,8 +77,9 @@ class AutomaticSysPatch:
stderr=subprocess.STDOUT
)
else:
version = dict[0]["Version"]
github_link = dict[0]["Github Link"]
for key in dict:
version = dict[key]["Version"]
github_link = dict[key]["Github Link"]
print(f"- Found new version: {version}")
# launch osascript to ask user if they want to apply the update