diff --git a/other_ext/register.py b/other_ext/register.py index 55b705d..edc3c7b 100644 --- a/other_ext/register.py +++ b/other_ext/register.py @@ -162,12 +162,15 @@ class Extension: await self.updater() await asyncio.sleep(timeout) - async def task_secondary(self, timeout = 60 * 60): + async def task_secondary(self, timeout = 60): await self.core.wait_until_ready() await asyncio.sleep(5) print("[register] update register cache who dont have role") while True: - await self.give_roles_to_auth() + try: + await self.give_roles_to_auth() + except: + print("Cannot update sync roles") await asyncio.sleep(timeout) async def updater(self): @@ -198,4 +201,5 @@ class Extension: print(f"[register] cannot add role to {unreg}") traceback.print_exc() except: + print("Cannot get /api/discord/sync") traceback.print_exc() \ No newline at end of file