"prerelease" might not be in check (chances for that are actually high), don't hiccup on that

This commit is contained in:
Gina Häußge 2016-09-05 12:09:13 +02:00
parent ce28b637ab
commit 9a9502b281

View file

@ -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