mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-30 17:54:51 +00:00
Update __main__.py
This commit is contained in:
parent
9001d0846b
commit
2602fe7689
1 changed files with 4 additions and 0 deletions
|
|
@ -338,6 +338,9 @@ General command are:
|
|||
|
||||
return await client.answer_callback_query(query.id)
|
||||
|
||||
async def cleanup():
|
||||
await app.stop()
|
||||
await user.stop()
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
|
|
@ -347,5 +350,6 @@ if __name__ == "__main__":
|
|||
except Exception as err:
|
||||
LOGGER.error(err.with_traceback(None))
|
||||
finally:
|
||||
loop.run_until_complete(cleanup())
|
||||
loop.stop()
|
||||
print("------------------------ Stopped Services ------------------------")
|
||||
|
|
|
|||
Loading…
Reference in a new issue