"prerelease" key might not be in check if tracking stable releases

This commit is contained in:
Gina Häußge 2016-09-12 09:25:34 +02:00
parent 079430e3c8
commit 0bb6f5215d

View file

@ -778,7 +778,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
# if we are using the update_script, we need to set our update_branch and force
# to install the exact version we requested
if check["prerelease"]:
if check.get("prerelease", None):
# we are tracking prereleases => we want to be on the correct prerelease channel/branch
channel = check.get("prerelease_channel", None)
if channel: