update_manager: don't raise an exception when restarting moonraker

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine committed 2021-03-14 08:49:51 -04:00
1 parent 5f741c28a5
commit 3b99307109
1 file changed
+4
+4
View File
@@ -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):