coollsd commited on
Commit
0987a64
·
verified ·
1 Parent(s): 5c2fcfe

Update ccc.py

Browse files
Files changed (1) hide show
  1. ccc.py +7 -1
ccc.py CHANGED
@@ -138,4 +138,10 @@ async def main():
138
  await asyncio.gather(*tasks)
139
 
140
  if __name__ == "__main__":
141
- asyncio.run(main())
 
 
 
 
 
 
 
138
  await asyncio.gather(*tasks)
139
 
140
  if __name__ == "__main__":
141
+ while True:
142
+ try:
143
+ asyncio.run(main())
144
+ except Exception as e:
145
+ print(f"Error occurred: {e}")
146
+ print("Restarting...")
147
+ time.sleep(5) # Wait 5 seconds before restarting