pyrefly
pyrefly copied to clipboard
Del the name of the exception at the end of the exception handler
Minimal repro:
try:
1 / 0
except Exception as e:
pass
print(e)
Expected: Name e is uninitialized at the print statement
Actual: No error
Are other names defined in the except block also out of scope after it ends?
No just the name of the exception.