From 9a9502b28115e272fad40758f42b40af2930ce39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 5 Sep 2016 12:09:13 +0200 Subject: [PATCH] "prerelease" might not be in check (chances for that are actually high), don't hiccup on that --- src/octoprint/plugins/softwareupdate/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/softwareupdate/__init__.py b/src/octoprint/plugins/softwareupdate/__init__.py index 4c2a16ad..a503f832 100644 --- a/src/octoprint/plugins/softwareupdate/__init__.py +++ b/src/octoprint/plugins/softwareupdate/__init__.py @@ -766,7 +766,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, else: result["current"] = VERSION - if check["type"] == "github_release" and (check["prerelease"] or BRANCH != stable_branch): + if check["type"] == "github_release" and (check.get("prerelease", None) or BRANCH != stable_branch): # we are tracking github releases and are either also tracking prerelease OR are currently installed # from something that is not the stable (master) branch => we need to change some parameters