mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 20:34:52 +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)
|
return await client.answer_callback_query(query.id)
|
||||||
|
|
||||||
|
async def cleanup():
|
||||||
|
await app.stop()
|
||||||
|
await user.stop()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
|
|
@ -347,5 +350,6 @@ if __name__ == "__main__":
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
LOGGER.error(err.with_traceback(None))
|
LOGGER.error(err.with_traceback(None))
|
||||||
finally:
|
finally:
|
||||||
|
loop.run_until_complete(cleanup())
|
||||||
loop.stop()
|
loop.stop()
|
||||||
print("------------------------ Stopped Services ------------------------")
|
print("------------------------ Stopped Services ------------------------")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue