Update Akeno/__main__.py
Browse files- Akeno/__main__.py +1 -6
Akeno/__main__.py
CHANGED
@@ -23,12 +23,11 @@ import logging
|
|
23 |
import sys
|
24 |
from contextlib import closing, suppress
|
25 |
|
26 |
-
import aiohttp
|
27 |
from pyrogram import idle
|
28 |
from pyrogram.errors import *
|
29 |
from uvloop import install
|
30 |
|
31 |
-
from Akeno import
|
32 |
from Akeno.utils.database import db
|
33 |
from Akeno.utils.logger import LOGS
|
34 |
|
@@ -68,10 +67,6 @@ async def main():
|
|
68 |
except Exception as e:
|
69 |
LOGS.info(f"Error in main: {e}")
|
70 |
finally:
|
71 |
-
await asyncio.gather(
|
72 |
-
aiohttpsession.close()
|
73 |
-
)
|
74 |
-
|
75 |
for task in asyncio.all_tasks():
|
76 |
task.cancel()
|
77 |
LOGS.info("All tasks completed successfully!")
|
|
|
23 |
import sys
|
24 |
from contextlib import closing, suppress
|
25 |
|
|
|
26 |
from pyrogram import idle
|
27 |
from pyrogram.errors import *
|
28 |
from uvloop import install
|
29 |
|
30 |
+
from Akeno import clients
|
31 |
from Akeno.utils.database import db
|
32 |
from Akeno.utils.logger import LOGS
|
33 |
|
|
|
67 |
except Exception as e:
|
68 |
LOGS.info(f"Error in main: {e}")
|
69 |
finally:
|
|
|
|
|
|
|
|
|
70 |
for task in asyncio.all_tasks():
|
71 |
task.cancel()
|
72 |
LOGS.info("All tasks completed successfully!")
|