mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Fix to exit correctly when quit()
or something is called
This commit is contained in:
parent
3314825fc1
commit
1078345a98
4 changed files with 35 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue