Update ccc.py
Browse files
ccc.py
CHANGED
|
@@ -138,4 +138,10 @@ async def main():
|
|
| 138 |
await asyncio.gather(*tasks)
|
| 139 |
|
| 140 |
if __name__ == "__main__":
|
| 141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|