diff --git a/ObsidianUpdateChecker/main.py b/ObsidianUpdateChecker/main.py index d1b50c8..6d53266 100644 --- a/ObsidianUpdateChecker/main.py +++ b/ObsidianUpdateChecker/main.py @@ -20,7 +20,7 @@ INSTALLED_VERSION = "" with urllib.request.urlopen(API_URL) as url: data = json.loads(url.read().decode()) assets = data["assets"] - for asset in assets + for asset in assets: if asset["name"].endswith(".deb"): DEB_NAME = asset["name"] DEB_URL = asset["browser_download_url"] @@ -63,4 +63,4 @@ if semver_check_new(INSTALLED_VERSION, DEB_VERSION): # Remove the deb file subprocess.run(["rm", DEB_NAME]) else: - print("No new version available") \ No newline at end of file + print("No new version available")