From 28ae00d9defb70ff65e0fcaf5d13ace7c72a5497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 10 Nov 2021 16:08:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Ignore=20checks=20w/o=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we disabled some checks in the past, and their providing plugins are currently disabled, we will have checks configured that only consist of a "disabled" key. That will cause a warning to be logged as there's no type defined. So we now simply ignore entries without a type altogether. --- src/octoprint/plugins/softwareupdate/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/octoprint/plugins/softwareupdate/__init__.py b/src/octoprint/plugins/softwareupdate/__init__.py index 1dfde6b31..ff30b19f7 100644 --- a/src/octoprint/plugins/softwareupdate/__init__.py +++ b/src/octoprint/plugins/softwareupdate/__init__.py @@ -1543,6 +1543,9 @@ class SoftwareUpdatePlugin( if not check: continue + if "type" not in check: + continue + try: populated_check = self._populated_check(target, check) future = executor.submit(