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

Fails to treat variables of exception types, when they're not used in error handling #147

Open
laike9m opened this issue Dec 31, 2021 · 0 comments · May be fixed by #150
Open

Fails to treat variables of exception types, when they're not used in error handling #147

laike9m opened this issue Dec 31, 2021 · 0 comments · May be fixed by #150
Labels
bug Something isn't working

Comments

@laike9m
Copy link
Owner

laike9m commented Dec 31, 2021

a = ValueError("sss")
b = a

'c:\Users\laike9m.vscode\extensions\ms-python.python-2021.3.680753044\pythonFiles\lib\python\debugpy\launcher' '58633' '--' 'c:\Users\laike9m\Desktop\cyberbrain-examples\rhymer.py'
Traceback (most recent call last):
File "c:\Users\laike9m\Desktop\cyberbrain-examples\rhymer.py", line 12, in
main()
File "C:\Users\laike9m\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cyberbrain\tracer.py", line 186, in wrapper
result = f(*args, **kwargs)
File "c:\Users\laike9m\Desktop\cyberbrain-examples\rhymer.py", line 8, in main
b = a
File "c:\Users\laike9m\Desktop\cyberbrain-examples\rhymer.py", line 8, in main
b = a
File "C:\Users\laike9m\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cyberbrain\tracer.py", line 241, in local_tracer
self.frame_logger.handle_instructions(raw_frame)
File "C:\Users\laike9m\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cyberbrain\logger.py", line 164, in handle_instructions
self.frame.log_events(frame, instr, jumped, self.last_exception)
File "C:\Users\laike9m\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cyberbrain\frame.py", line 151, in
log_events
event_info = self.value_stack.emit_event_and_update_stack(
File "C:\Users\laike9m\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cyberbrain\value_stack.py", line 157, in emit_event_and_update_stack
return handler(
File "C:\Users\laike9m\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cyberbrain\value_stack.py", line 65, in inner
return f(*args, **kwargs)
File "C:\Users\laike9m\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cyberbrain\value_stack.py", line 553, in _STORE_FAST_handler
return self._STORE_NAME_handler(instr)
File "C:\Users\laike9m\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cyberbrain\value_stack.py", line 65, in inner
return f(*args, **kwargs)
File "C:\Users\laike9m\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cyberbrain\value_stack.py", line 365, in _STORE_NAME_handler
type=Binding, target=Symbol(instr.argval), sources=set(self.tos)
TypeError: 'ValueError' object is not iterable

@laike9m laike9m added the bug Something isn't working label Dec 31, 2021
@victorjzsun victorjzsun linked a pull request Feb 21, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant