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 2021-03-14 08:49:51 -04:00
parent 5f741c28a5
commit 3b99307109
1 changed files with 4 additions and 0 deletions

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):