From c28faa80320b3f214a058daac0356b514b165b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 5 Apr 2019 15:37:25 +0200 Subject: [PATCH] =?UTF-8?q?=E2=98=94=20SWU:=20empty=20restart=20command=20?= =?UTF-8?q?=3D=3D=20unset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/plugins/softwareupdate/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/softwareupdate/__init__.py b/src/octoprint/plugins/softwareupdate/__init__.py index 289910127..e29ea3137 100644 --- a/src/octoprint/plugins/softwareupdate/__init__.py +++ b/src/octoprint/plugins/softwareupdate/__init__.py @@ -912,7 +912,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, elif restart_type == "environment": restart_command = self._settings.global_get(["server", "commands", "systemRestartCommand"]) - if restart_command is not None: + if restart_command: self._send_client_message("restarting", dict(restart_type=restart_type, results=target_results)) try: self._perform_restart(restart_command)