From 5647094cc093c2f71ee68a3b2cdb930c0353ce95 Mon Sep 17 00:00:00 2001 From: "hikari.ftg" Date: Mon, 28 Mar 2022 10:25:34 +0000 Subject: [PATCH] Add protection from update loop --- hikka/modules/updater.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hikka/modules/updater.py b/hikka/modules/updater.py index 4a5dec2..2f00187 100755 --- a/hikka/modules/updater.py +++ b/hikka/modules/updater.py @@ -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: