"prerelease" might not be in check (chances for that are actually high), don't hiccup on that
This commit is contained in:
parent
ce28b637ab
commit
9a9502b281
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue