From 32a52bdb0fa27402633f2150f3f521a42ebe3cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 7 Jul 2021 18:04:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20a=20bug=20in=20wizard=20ig?= =?UTF-8?q?nored=20calculation=20(Py3=20only=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If seen was None and current was not, there would be an error due to comparing an int with None. --- src/octoprint/plugin/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/plugin/types.py b/src/octoprint/plugin/types.py index da7ccddd8..9d8d39ce0 100644 --- a/src/octoprint/plugin/types.py +++ b/src/octoprint/plugin/types.py @@ -1105,7 +1105,7 @@ class WizardPlugin(OctoPrintPlugin, ReloadNeedingPlugin): * the current and seen versions are identical * the current version is None and the seen version is not - * the current version is less or equal than the seen one + * the seen version is not None and the current version is less or equal than the seen one .. code-block:: none @@ -1157,7 +1157,7 @@ class WizardPlugin(OctoPrintPlugin, ReloadNeedingPlugin): return ( (current == seen) or (current is None and seen is not None) - or (current <= seen) + or (seen is not None and current <= seen) )