This commit is contained in:
red 2025-12-05 13:51:20 +00:00
parent 9f58cf209f
commit e2722c098b
1 changed files with 2 additions and 2 deletions

View File

@ -161,14 +161,14 @@ async def main_loop():
while True: while True:
try: try:
await process_chats() await process_chats()
await asyncio.sleep(10) await asyncio.sleep(5)
except asyncio.CancelledError: except asyncio.CancelledError:
print("cancelled normally (ok knowing my luck the error is gonna be this one every single time even tho it never actually is an error like this!) cute puppy: Hiiii") print("cancelled normally (ok knowing my luck the error is gonna be this one every single time even tho it never actually is an error like this!) cute puppy: Hiiii")
break break
except Exception as e: except Exception as e:
print(f"error {e}") print(f"error {e}")
await asyncio.sleep(10) await asyncio.sleep(5)
if __name__ == "__main__": if __name__ == "__main__":
asyncio.run(main_loop()) asyncio.run(main_loop())