>>> assert 1 == 2
Traceback (most recent call last):
File "<string>", line 32, in <module>
File "<string>", line 1, in <module>
File "<stdin>", line -1, in <module>
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 36, in <module>
NameError: name 'e' is not defined
A NameError: name 'e' is not defined is thrown, this is not expected. And REPL is not worked after this exception. E.g. type print!("hello"), no text is displayed.
Reproducible code
assert 1 == 2
Expected result
No NameError here.
Actual result
Additional context
No response
Erg version
main branch, commit hash is fb294fa991beebdb2a4445173ac4d77470e2c677
Describe the bug?
Enter the REPL, and type
assert 1 == 2
A
NameError: name 'e' is not defined
is thrown, this is not expected. And REPL is not worked after this exception. E.g. typeprint!("hello")
, no text is displayed.Reproducible code
Expected result
No
NameError
here.Actual result
Additional context
No response
Erg version
main branch, commit hash is fb294fa991beebdb2a4445173ac4d77470e2c677
Python version
Python3.10
OS
Linux (other distro)