Do not quit hy if hy.core.process raises an exception
This commit is contained in:
parent
92eaed21e4
commit
8212ed5794
7
bin/hy
7
bin/hy
@ -48,7 +48,12 @@ class HyREPL(code.InteractiveConsole):
|
|||||||
_machine = Machine(Idle, 1, 0)
|
_machine = Machine(Idle, 1, 0)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
tokens = process(_machine.nodes)
|
try:
|
||||||
|
tokens = process(_machine.nodes)
|
||||||
|
except Exception:
|
||||||
|
_machine = Machine(Idle, 1, 0)
|
||||||
|
self.showtraceback()
|
||||||
|
return False
|
||||||
|
|
||||||
_machine = Machine(Idle, 1, 0)
|
_machine = Machine(Idle, 1, 0)
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user