Fix to exit correctly when quit() or something is called

This commit is contained in:
Shunsuke Shibayama 2022-08-18 20:27:28 +09:00
parent 3314825fc1
commit 1078345a98
4 changed files with 35 additions and 3 deletions

View file

@ -25,6 +25,9 @@ while True:
__res = str(exec('__importlib.reload(o)'))
else:
__res = str(exec('import o'))
except SystemExit:
__client_socket.send('[Exception] SystemExit'.encode())
continue
except e:
__res = str(e)
__already_loaded = True