Commit 5ab068d9 authored by Mark Florisson's avatar Mark Florisson

Fix compiler crash on generators when writing debug info

parent 8ba46f75
......@@ -2651,7 +2651,7 @@ class DebugTransform(CythonTransform):
pf_cname = node.py_func.entry.func_cname
attrs = dict(
name=node.entry.name,
name=node.entry.name or getattr(node, 'name', '<unknown>'),
cname=node.entry.func_cname,
pf_cname=pf_cname,
qualified_name=node.local_scope.qualified_name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment