-
Notifications
You must be signed in to change notification settings - Fork 57
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
KeyError: 'exception match' #712
Labels
Comments
Thanks for catching the bug Anting! We'll look into it next week and let you know an ETA for the fix! |
I could not replicate this issue. However, when I run raise ValueError I get the following. ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Input In [3], in <cell line: 2>()
1 import lineapy.editors.ipython
----> 2 lineapy.editors.ipython._end_cell()
File ~/Workspaces/linea/lineapy/lineapy/editors/ipython.py:172, in _end_cell()
169 # Write the code text to a file for error reporting
170 get_cell_path(location).write_text(code)
--> 172 last_node = transform(code, location, STATE.tracer)
173 if STATE.visualize_display_handle:
174 STATE.visualize_display_handle.update(
175 STATE.create_visualize_display_object()
176 )
File ~/Workspaces/linea/lineapy/lineapy/transformer/transform_code.py:53, in transform(code, location, tracer)
50 res = None
51 for trans in transformers:
52 # print(ast.dump(stmt))
---> 53 res = trans.visit(stmt)
54 # or some other statement to figure out whether the node is properly processed or not
55 if res is not None:
File /usr/local/Caskroom/miniconda/base/envs/lineapy9/lib/python3.9/ast.py:407, in NodeVisitor.visit(self, node)
405 method = 'visit_' + node.__class__.__name__
406 visitor = getattr(self, method, self.generic_visit)
--> 407 return visitor(node)
File ~/Workspaces/linea/lineapy/lineapy/transformer/node_transformer.py:191, in NodeTransformer.visit_Raise(self, node)
190 def visit_Raise(self, node: ast.Raise) -> None:
--> 191 return super().visit_Raise(node)
AttributeError: 'super' object has no attribute 'visit_Raise' This is a pretty ugly error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I run this in a new notebook:
and I get this error:
am on version 0.1.4
The text was updated successfully, but these errors were encountered: