Add sys.exit after closing connections
This commit is contained in:
parent
f834191d96
commit
6cf5283621
@ -1,4 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import json
|
import json
|
||||||
from concurrent import futures
|
from concurrent import futures
|
||||||
from multiprocessing import Pool
|
from multiprocessing import Pool
|
||||||
@ -148,6 +149,7 @@ class Geeksbot(commands.Bot):
|
|||||||
try:
|
try:
|
||||||
await self.aio_session.close()
|
await self.aio_session.close()
|
||||||
await super().close()
|
await super().close()
|
||||||
|
sys.exit()
|
||||||
except Exception:
|
except Exception:
|
||||||
geeksbot_logger.exception(f"Error Closing Connections.")
|
geeksbot_logger.exception(f"Error Closing Connections.")
|
||||||
geeksbot_logger.info('Exiting...')
|
geeksbot_logger.info('Exiting...')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user