Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL: unexpected exception is thrown #419

Closed
Hanaasagi opened this issue Apr 22, 2023 · 1 comment · Fixed by #420
Closed

REPL: unexpected exception is thrown #419

Hanaasagi opened this issue Apr 22, 2023 · 1 comment · Fixed by #420
Labels
bug Something isn't working REPL

Comments

@Hanaasagi
Copy link
Contributor

Describe the bug?

Enter the REPL, and type assert 1 == 2

>>> 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

2023-04-22_13-00

Additional context

No response

Erg version

main branch, commit hash is fb294fa

Python version

Python3.10

OS

Linux (other distro)

@anzhi0708
Copy link
Contributor

I had the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working REPL
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants