From 3b99307109d293f264b0abb1aa822d407f8367eb Mon Sep 17 00:00:00 2001 From: Arksine Date: Sun, 14 Mar 2021 08:49:51 -0400 Subject: [PATCH] update_manager: don't raise an exception when restarting moonraker Signed-off-by: Eric Callahan --- moonraker/plugins/update_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/moonraker/plugins/update_manager.py b/moonraker/plugins/update_manager.py index d44ef96..48f0aad 100644 --- a/moonraker/plugins/update_manager.py +++ b/moonraker/plugins/update_manager.py @@ -710,6 +710,10 @@ class GitUpdater: await self.cmd_helper.run_cmd( f"sudo systemctl restart {self.name}") except Exception: + if self.name == "moonraker": + # We will always get an error when restarting moonraker + # from within the child process, so ignore it + return raise self._log_exc("Error restarting service") def get_update_status(self):