Commit 1266dbd8 authored by Xavier Thompson's avatar Xavier Thompson

Fix CypclasssLockTransform causing crash

parent 89af179f
......@@ -719,7 +719,7 @@ class CypclassLockTransform(Visitor.EnvTransform):
return node
def visit_IndexNode(self, node):
if node.base.type.is_cyp_class:
if node.base.type and node.base.type.is_cyp_class:
func_entry = None
if self.deleting:
func_entry = node.base.type.scope.lookup("__delitem__")
......
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