handle exception when exiting cmd mode

This commit is contained in:
muskit
2023-08-20 16:04:57 -07:00
parent c54fa3e144
commit 7102fb3cc5
+3
View File
@@ -30,7 +30,10 @@ def init_argparse():
def command_line():
# TODO (extra): implement command line mode for manually controlling the bot
print('Here\'s a Python interpretor.')
try:
code.interact(local=globals())
except SystemExit:
pass
async def async_main():
global PROGRAM_ARGS