Sleepy
This commit is contained in:
parent
9f58cf209f
commit
e2722c098b
|
|
@ -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())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue