Sleepy
This commit is contained in:
parent
9f58cf209f
commit
e2722c098b
|
|
@ -161,14 +161,14 @@ async def main_loop():
|
|||
while True:
|
||||
try:
|
||||
await process_chats()
|
||||
await asyncio.sleep(10)
|
||||
await asyncio.sleep(5)
|
||||
|
||||
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")
|
||||
break
|
||||
except Exception as e:
|
||||
print(f"error {e}")
|
||||
await asyncio.sleep(10)
|
||||
await asyncio.sleep(5)
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main_loop())
|
||||
|
|
|
|||
Loading…
Reference in New Issue