mirror of https://github.com/coddrago/Heroku
Add protection from update loop
parent
5ea353d8c9
commit
2b55fde4e8
|
@ -172,7 +172,12 @@ class UpdaterMod(loader.Module):
|
||||||
self.req_common()
|
self.req_common()
|
||||||
await self.restart_common(message)
|
await self.restart_common(message)
|
||||||
except GitCommandError:
|
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
|
@loader.unrestricted
|
||||||
async def sourcecmd(self, message: Message) -> None:
|
async def sourcecmd(self, message: Message) -> None:
|
||||||
|
|
Loading…
Reference in New Issue