Add protection from update loop

pull/1/head
hikari.ftg 2022-03-28 10:25:34 +00:00
parent 5ea353d8c9
commit 2b55fde4e8
1 changed files with 6 additions and 1 deletions

View File

@ -172,7 +172,12 @@ class UpdaterMod(loader.Module):
self.req_common()
await self.restart_common(message)
except GitCommandError:
await self.updatecmd(message, True)
if not hard:
await self.updatecmd(message, True)
return
logger.critical("Got update loop. Update manually via .terminal")
return
@loader.unrestricted
async def sourcecmd(self, message: Message) -> None: